Skip to content
Discussion options

You must be logged in to vote

Hi @bensullivan2002,

You cannot directly modify commit metadata inside closed Pull Requests because GitHub stores immutable internal references (refs/pull/<id>/head) and cached commit objects that standard git push --force cannot overwrite.

Since this is a private personal repository that hasn't been shared or made public yet, the definitive and cleanest solution is to rewrite the history locally, push it to a clean repository, and delete the old one. This completely purges all closed PRs and cached commit history.

Here are the complete steps:

Step 1: Install git-filter-repo and rewrite the email locally

pip install git-filter-repo
git filter-repo --email-callback '
    return email.repla…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@bensullivan2002
Comment options

Comment options

You must be logged in to vote
2 replies
@bensullivan2002
Comment options

@Sarvagya-24-chaturvedi
Comment options

Answer selected by bensullivan2002
Comment options

You must be logged in to vote
1 reply
@bensullivan2002
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Security Build security into your GitHub workflow with features to keep your codebase secure other General topics and discussions that don't fit into other categories, but are related to GitHub Question Ask and answer questions about GitHub features and usage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
4 participants