git change commit nage code example Example: how to change a commit message git commit --amend git push --force-with-lease <repository> <branch>