Created
June 9, 2025 13:31
-
-
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
This file contains hidden or 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
# 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