change author in commits code example
Example 1: How to change git author
git commit --amend --author="Author Name <[email protected]>" --no-edit
Example 2: git change author of last 2 commits
git rebase -i YOUR_SHA -x "git commit --amend --author 'New Name <[email protected]>' -CHEAD"