gitのよく使うコマンド
git add .
全ての更新をindexに追加
git commit -m "comment"
indexの変更をbranchに記録
git status
commit間の変更を表示
git log
全てのcommit履歴を表示
git branch -a
全てのbranch(ローカルとリモート)を表示
git checkout [branch]
branchの切り替え
git checkout -f
git add で追加したファイルを全て取り消し
最後のcommitへ強制
git fetch
リモートレポジトリの変更を取得
git merge [branch]
現在のブランチに[branch]をmerge
git pull
fetchとmergeをセットで実行
git push [remote] [branch]
[remote]の[branch]へ変更をpush
git rebase
branchの分岐点を、最新のcommitに更新