Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> git diff --staged (shows the diff between the last commit and what you've got staged, great when what you're staging is finicky, lets you double check that you have precisely the files/hunks you intended)

If you set `git config --global commit.verbose true`, then Git will automatically include this diff in the comment section of the commit message editor.



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

Search: