Skip to content

How do I remove sensitive data from my repository? #22781

Discussion options

You must be logged in to vote
BetterAutomations:

It appears to have completed successfully, but when I load up the history on GitHub.com, I can still see the old commit, can still view the contents.

Do you mean that it’s still part of the commit history of the branch, or that a direct link to the commit still works? In the former case you probably missed something while cleaning. The latter case is to be expected, that’s why the documentation you linked recommends contacting Github support after cleaning up the history so they can remove the commits from any caches.

Note that you should consider the data compromised anyway, so you should change any passwords, tokens, API keys and the like. ⚠️

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants