Last Updated: January 20, 2018
·
552
· treppo

Want to update your commit afterwards?

I'm sure you know this scenario:

You just commited your newly implemented, awesome feature – but wait! There's a typo in the commit message!
No problem, just type

git amend

and edit the message in the text editor.

Or did you forget to add a file to the commit? Instead of doing another commit go ahead and just add the file

git add <file> && git amend

Voilá!