git

1作業ディレクトリ

2インデックス

3リポジトリ(ローカル、リモート)

 

add    1から2へ

commit  2から3へ

 

Git のコマンドだけでなく、その仕組みを学ぶ

git log

git status        修正したか、addしたか、commitしたか

git checkout -- index.html

git diff  index と working tree の差分を表示するコマンド。

git diff --cached

index と HEAD の差分を表示するコマンド。
commit 直前によく実行する。

git add. 一気にindexにaddする

git reset  

commitしたものに関しては保存されているので戻れる

git branch

merge 移行先でコマンドする

コンフリクトの解決

tag