Initialize Account before committing code so that you got a correct Author & Committer information
git config --global user.name "Hugo Gu"
git config --global user.email "hugogu@outlook.com"
git config --local user.name "Hugo Gu"
git config --local user.email "hugogu@outlook.com"
To fix a wrong author of the last one commit:
git commit --amend --author="Hugo Gu <hugogu@outlook.com>"
To fix author of all commits, first setup account correctly and then:
git rebase -i BASE_SHA -x "git commit --amend --reset-author -CHEAD"