How to compare the working tree with a commit?
I'm using git diff mycommit for comparing my working tree with mycommit , but it seems to ignore files not present in the current index. You can reproduce it as follows: git init echo A > A.txt; git add .; git commit -m A; git branch A echo B > B.txt; git add .; git commit -m B; git branch B git reset --hard A echo BB > B.txt git diff B The output (as of git version 1.7.3.3) is empty. Using --diff-filter=ACDMRTUXB shows "deleted file" which is wrong as well, since the file B.txt exists both in the working tree and in commit B . IMHO, the file should be shown as modified. Surprisingly, it works