Hacker News new | past | comments | ask | show | jobs | submit login

If 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: