Skip to content

Instantly share code, notes, and snippets.

@jaimeagudo
Created August 30, 2022 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaimeagudo/76dd0e04c05716d8788a91b3c8586c78 to your computer and use it in GitHub Desktop.
Save jaimeagudo/76dd0e04c05716d8788a91b3c8586c78 to your computer and use it in GitHub Desktop.
Firstly, we'll need to update the commit author in our local Git config:
$ git config --global user.name "Jaime Agudo"
$ git config --global user.email "jaimeagudo@users.no.reply.github.com"
Then, reset the author of all commits after a specific commit:
$ git rebase -i 956951bf -x "git commit --amend --reset-author -CHEAD"
You'll then be presented with your editor where you can confirm all the commits you want to change.
Check through the commits in the list, and hit ctrl+x, followed by enter to apply the changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment