git amend keep message code example
Example 1: git commit amend without changing message
git commit --amend --no-edit
Example 2: git amend commit message
git commit --amend -m "New commit message for most recent commit"
git commit --amend --no-edit
git commit --amend -m "New commit message for most recent commit"