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

git commit --amend is also useful for when you immediately realise that you aren't happy with the commit message (it has a typo in it, or you forgot to mention something), as you can use it without git add -ing anything, just to edit the message.


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

Search: