Amend a commit

To modify an existing commit

Git Amend

Lets say you commited your code to local repository and later you found you want to add or modify that commit, you can use git amend.

git commit --amend

Note:- this amend works only for the local git commit which is not yet pushed to remote repo.

git rebase --continue

Last updated