Skip to content

Instantly share code, notes, and snippets.

@Fedcomp
Last active November 26, 2023 14:12
Show Gist options
  • Save Fedcomp/999ef04158b4a1b70cf38533c96bd90a to your computer and use it in GitHub Desktop.
Save Fedcomp/999ef04158b4a1b70cf38533c96bd90a to your computer and use it in GitHub Desktop.
git filter-repo example (saved for myself, use at your own risk)
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