Last Updated: February 25, 2016
·
648
· duckitch

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