If you need to change the author of your last commit, you can use the --amend flag.
--amend
git commit --amend --author="New Author <new_email@example.com>"