Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save budsonjelmont/2a5d8edaab514a58f89386dbfc938b83 to your computer and use it in GitHub Desktop.
Save budsonjelmont/2a5d8edaab514a58f89386dbfc938b83 to your computer and use it in GitHub Desktop.
Fix git commit history in your local because you committed with the wrong username or email
# Requires uvx https://docs.astral.sh/uv/guides/tools/#running-tools
# Run command below to fix the commits in your local, then force push
# to remote.
uvx git-filter-repo --commit-callback '
if commit.author_name != b"budsonjelmont" or commit.author_email != b"[email protected]":
commit.author_name = b"budsonjelmont"
commit.author_email = b"[email protected]"
commit.committer_name = b"budsonjelmont"
commit.committer_email = b"[email protected]"
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment