DEV Community

Discussion on: Remove accidentally pushed file from a git repository history in 4 simple steps

adamukaapan profile image
Adam Krpan

Another note! If you're using GitHub and accidentally committed a secret (like I did, but that's a whole other story), GitHub has a few other steps they recommend you take. The main one is "Contact GitHub Support or GitHub Premium Support, asking them to remove cached views and references to the sensitive data in pull requests on GitHub." Source:

I'm not sure exactly how necessary this is, but I figured I'd note it in case some others are really paranoid.