Menu
Amend your git author tag of one or more commits sequentially

Change future commit author's tag with git global config as shown below

git config --global user.name "name_you_want_to_change"
git config --global user.email "[email protected]"

Now assume you have 3 commits 7743a3(HEAD) -> 52da64 -> 194150, and you want to change author tag of 52da64 and 7743a3, then execute below git command

git rebase -i 7743a3 -x "git commit --amend --reset-author -CHEAD"

If in case you want to reset author's tag from initial commit/ all commits, execute following command

git rebase -i --root -x "git commit --amend --reset-author -CHEAD"

After this force push your changes since you have modifed the commit and its hash. Following is the command assuming remote branch name is master

git push -f origin master

Credit