when to use git commit amend code example
Example 1: amend commit
git commit --amend -m "an updated commit message"
Example 2: git amend commit message
git commit --amend -m "New commit message for most recent commit"
git commit --amend -m "an updated commit message"
git commit --amend -m "New commit message for most recent commit"