The so-called writings of Michael Gorsuch.

Fixing the Author on a Git Commit

Ugh. So you just made a commit, take a look at the revlog and realize that you did it as root. How embarrassing. Assuming you haven’t pushed, however, you can fix it without much trouble.

Try this:

$ git commit --amend --author "Your Name <you@domain.com>"