git change the user who made the commit code example Example: git change user of last commit git commit --amend --author="John Doe <[email protected]>"