Menu

gitpiper

Create a commit by a different author git Code Snippet in 2025

commitintermediate

Last Updated: 22 April 2025

Creates a new commit by the specified author.

  • 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="Duck Quackers <cool.duck@qua.ck>" # Creates a commit by `Duck Quackers`

git snippet similar to Create a commit by a different author For You in April 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️