かみぽわーる

kamipo's blog

git diffのメモ

gitにはworking copyとindexとlocal repositoryがある。はず。

そんで

% git diff

はworking copyとindexのdiffで

% git diff --cached

はindexとlocal repositoryのdiffで

% git diff HEAD

はworking copyとlocal repositoryのdiff。

で合ってると思う。