3 ms·
Sorry for OT but why do you need to add HEAD? I always just do git diff. I tried to google but didn't find any good answer.
by Kiro 12y ago
Sorry for OT but why do you need to add HEAD? I always just do git diff. I tried to google but didn't find any good answer.
- coldpie 12y agoIf you do just "git diff" it will show you the diff between the index (staging area) and your working tree. If you do "git diff HEAD" it will show you the difference between the latest commit and your working tree, that is, it includes the diff in the staging area.