git change commit message author commit before push code example
Example 1: git amend commit message after push
$ git commit --amend -m "New and correct message"
Example 2: git change commit author for all commits
# Changes the username and email of all commits from the start.
git rebase -i --root -x "git commit --amend --author='YOUR_USERNAME <[email protected]> --no-edit'"