git commit amend
This has come in so handy so many times!
Did that quick commit without adding the last bit of polish to your code?
First you need to add the latest change you have made, that you want to add to your previous commit.
git add <file>
Now you can amend your previous commit and make any notes you need.
git commit --amend
Written by Milos Dakic
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#