I accidentally pushed a commit with sensitive data to Github. So I immediately deleted the branch that contained the commit (via Github UI). When I recloned the repo and run git show <hash>
, I received fatal: bad object <hash>
, so I know that commit is gone, but when I visited github.com/$account/$repository/commit/<hash>
, I can still see the commit.
I saw this solution. https://help.github.com/articles/commit-exists-on-github-but-not-in-my-local-clone/ But I am unable to implement for my case because I no longer keep the repo with the branch that has the commit locally, and none of my collaborator does. What can I do to delete this commit from Github page/UI?