Create or update a commit by a specified author

Print Friendly, PDF & Email
  • Use git commit -m <message> to create a new commit with the specified <message>.
  • Use the --author option to change the <name> and <email> of the commit’s author.
git commit -m <message> --author="<name> <email>"
# Make some changes to files
git add .
git commit -m "Fix the network bug" --author="Tom Nguyen <tom.nguyen@itersdesktop.com>"
# Creates a commit by `Tom Nguyen`

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code

This site uses Akismet to reduce spam. Learn how your comment data is processed.