Need Support to purge dangling refs/pull/1/head after a completed git filter-repo scrub #200947
Replies: 3 comments
-
|
It sounds like you've already completed the repository rewrite correctly by removing the sensitive content, force-pushing the cleaned history, and verifying that no branch or tag references the affected commits. The remaining refs/pull/* references are GitHub-managed internal references and can't be deleted or updated by repository administrators. If those refs still expose the sensitive commits, this requires intervention from GitHub Support. Since this involves sensitive data (PHI), I recommend contacting GitHub Support directly and clearly stating that you've already rewritten the repository history and that internal pull request refs are still retaining the removed commits. Include the affected repository, the pull request ref (refs/pull/1/head), and the commit SHAs you've identified, as you've done here. GitHub Support can evaluate whether the pull request refs, cached diffs, and any server-side objects need to be purged. Because this concerns sensitive information, they generally handle these requests through the support team rather than the community forum. Hopefully they can point you to the appropriate internal process or escalate the request for repository garbage collection and cache invalidation. |
Beta Was this translation helpful? Give feedback.
-
|
Here is the technical solution to completely purge dangling pull request references and clear the server-side cache after running git filter-repo:
Delete the remote repository from your GitHub settings. Create a brand new empty repository with the exact same name on GitHub. Clean your local repository cache entirely to ensure no traces remain locally: git reflog expire --expire=now --all Force-push the clean history to the new repository: git remote set-url origin git@github.com:Sublx8ed01/chiro-backbone.git |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
Body
Repo: Sublx8ed01/chiro-backbone (private)
PHI (patient radiology files) was committed 2026-04-15 (commit
8c60bddaa8c6ec9f570d180f41d50c5f2ec9c4fb) and has since been removed via
git filter-repo, force-pushed 2026-07-02. Old pre-scrub main tip was
093b05d6200efec4e91012148722383e93a98c3e.
The rewrite is confirmed clean on all branches (fresh mirror clone shows
zero references to the removed content). However, refs/pull/1/head
(confirmed via git ls-remote, SHA 5c8f28bd4401b31b4a30f7497d3da3a2510a2e6a,
confirmed ancestor of the PHI commit) still pins pre-scrub history
server-side, so the removed PHI remains fetchable via that ref.
Number of affected pull requests: 1
I can't find a working ticket/form path through the current
support.github.com self-serve flow for this request type. Could someone
point me to the right process, or handle directly?
Requesting:
Beta Was this translation helpful? Give feedback.
All reactions