change author of pushed commit code example
Example 1: change message from last pushed commit
git commit --amend
Example 2: change commit author after push
git commit --amend --author="Author Name <[email protected]>" --no-edit
git commit --amend
git commit --amend --author="Author Name <[email protected]>" --no-edit