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.
1
git commit --amend
Copied!
Note:- this amend works only for the local git commit which is not yet pushed to remote repo.
​
git rebase --continue
Copy link
Contents
Git Amend