Skip to content

Instantly share code, notes, and snippets.

@pharsi
Created November 3, 2023 06:02
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 pharsi/57d34b1c2a325be36d269231f74b30fb to your computer and use it in GitHub Desktop.
Save pharsi/57d34b1c2a325be36d269231f74b30fb to your computer and use it in GitHub Desktop.
Rewrite git history and change Authors or Co-authored by
git filter-branch --env-filter '
export GIT_COMMITTER_NAME="New committer name"
export GIT_COMMITTER_EMAIL="New committer email"
export GIT_AUTHOR_NAME="New committer name"
export GIT_AUTHOR_EMAIL="New committer email"
' -- --all
# Change 'New committer name' and 'New committer email' then run the command above to fix commit messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment