コマンド一覧
git init Git リポジトリの作成git add <ファイル名> ファイルをステージング領域に追加 git commit -m "<コミットメッセージ>" ファイルをリポジトリにコミット git status 状態確認git log commit log (変更の履歴) の確認git ls-files Git 管理下にあるファイル一覧確認git diff 変更の差分を表示するgit checkout <コミットハッシュ値> 指定したコミットの時点に戻るが、最新のコミットにも戻れる。git branch ブランチの確認git branch <branch名> ブランチの作成git branch -d <branch名> ブランチの削除git checkout <branch名> ブランチの移動git merge <branch名> ブランチの結合git rm <ファイル名> ファイルの削除git mv <ファイル名> フィアルの移動、名前の変更git reset --soft <コミットハッシュ値> commit を取り消すgit reset --mixed <コミットハッシュ値> add と commit を取り消すgit reset --hard <コミットハッシュ値> working tree の変更と add, commit を取り消す