set author in git commit code example Example: How to change git author git commit --amend --author="Author Name <[email protected]>" --no-edit