Skip to content

Instantly share code, notes, and snippets.

@rfdonnelly
Created September 27, 2021 16:33
Show Gist options
  • Save rfdonnelly/abf2982a1369dfff526efbcf2f76606c to your computer and use it in GitHub Desktop.
Save rfdonnelly/abf2982a1369dfff526efbcf2f76606c to your computer and use it in GitHub Desktop.
Git Reset Author

Git Reset Author

Rewrite all commits with a new committer and author information.

Set desired committer/author information
git config user.name <username>
git config user.email <email>
Update all commits with desired committer/author information
git rebase -i --root --exec 'git commit --amend --reset-author --no-edit' # (1)
  1. Mark all commits as e or edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment