Last active
November 26, 2023 14:12
-
-
Save Fedcomp/999ef04158b4a1b70cf38533c96bd90a to your computer and use it in GitHub Desktop.
git filter-repo example (saved for myself, use at your own risk)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-repo --force --replace-refs delete-no-add --commit-callback ' | |
if commit.author_email == b"old_email@domain": | |
commit.author_email = b"new_private_email@domain" | |
commit.author_name = b"username" | |
commit.committer_email = b"new_private_email@domain" | |
commit.committer_name = b"username" | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment