Skip to main content
Code and think

GIT Amend last commit

If you remembered about a small change just after you committed use the amend switch.

So git commit --amend will replace the tip of the current head with a new one (remove last commit and create a new one). You can combine with other switches as well e.g.

git commit --amend -m "TASK-123: Added awesome new feature"

Reference