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á!
Written by Christian Treppo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#