After purging a leaked file with `git filter-repo` and force-pushing, the old commit is still viewable on GitHub by its SHA.
AdvancedTroubleshootingRepository Health, Size and Performance
Answer
Likely causes → GitHub keeps unreachable objects for a while, and other refs still point at the old history: pull request refs (refs/pull/*/head, which you cannot delete), forks, and cached views. Anyone who cloned before the rewrite also still has it.
Diagnose →
git ls-remote origin | grep -v -E 'refs/heads|refs/tags' # refs/pull/* still exist
gh api repos/org/repo/commits/<old-sha> --jq .sha # still resolvable?
Fix → Treat the secret as compromised and rotate it first. Then contact GitHub Support with the list of affected SHAs to remove cached views and PR refs and run gc on their side; ask fork owners to delete their forks.
Prevent → Enable secret scanning push protection so the secret never lands, and keep secrets in a vault, not in files that can be committed.
More on Repository Health, Size and Performance
`git status` takes 8–15 seconds in a large monorepo.Intermediate`error: The last gc run reported the following. Please correct the root cause and remove .git/gc.log` followed by `warning: There are too many unreachable loose objects; run 'git prune' to remove them.`IntermediateEvery few commands Git prints `Auto packing the repository in background for optimum performance.` and the machine stutters.BeginnerA fresh clone downloads 4 GB, but the checked-out files are only 200 MB.Intermediate`git gc` or `git clone` dies with `fatal: Out of memory, malloc failed (tried to allocate 1073741824 bytes)` or `error: pack-objects died of signal 9`.Advanced`error: unable to create temporary file: No space left on device` followed by `fatal: failed to write object`.Beginner