How to changes Author in last commit
This command will effectively replace the last commit with your "edited" version.
git commit --amend --author="authorname <example@gmail.com>"
Then
git push origin master --force
This command will effectively replace the last commit with your "edited" version.
git commit --amend --author="authorname <example@gmail.com>"
Then
git push origin master --force