Skip to content

Instantly share code, notes, and snippets.

@albertopasqualetto
Last active August 10, 2023 23:49
Show Gist options
  • Save albertopasqualetto/fdd785ca4474eba66bd57f3ced0577a1 to your computer and use it in GitHub Desktop.
Save albertopasqualetto/fdd785ca4474eba66bd57f3ced0577a1 to your computer and use it in GitHub Desktop.
Commands to change the git author and committer names and emails in all the repo
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='Author name'; GIT_AUTHOR_EMAIL='Author email'; GIT_COMMITTER_NAME='Committer Name'; GIT_COMMITTER_EMAIL='Committer email';" HEAD
git rebase -r <some commit before all of your bad commits> --exec 'git commit --amend --no-edit --reset-author'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment