Skip to content

Instantly share code, notes, and snippets.

@phanect
Created December 5, 2023 12:50
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 phanect/8cbc14acc1d3c57d4a57aeca94e48f6b to your computer and use it in GitHub Desktop.
Save phanect/8cbc14acc1d3c57d4a57aeca94e48f6b to your computer and use it in GitHub Desktop.
Commands to replace all the committer emails in the commit logs.
echo -e "Jumpei Ogawa <git@phanective.org> <phanect@users.noreply.github.com>\nJumpei Ogawa <git@phanective.org> <old@example.com>" | tee ./mailmap
git filter-repo --mailmap mailmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment