amend commits git code example
Example 1: git amend
git commit --amend
Example 2: amend commit
git commit --amend -m "an updated commit message"
Example 3: add change to last commit
$ (some_branch) git commit --amend
Example 4: git commit amend
git commit --amend --no-edit