3 years back I committed secrets, and I later removed the secrets, but the secret are still in git history. How can I remove it from history? I am using Mac system
Asked
Active
Viewed 12 times
-1
-
1I don't think it particularly matters how far back in the history a commit is. The process for [removing a specific commit](https://stackoverflow.com/questions/2938301/remove-specific-commit) from the history is the same. Also keep in mind that the most important thing to do after accidentally committing a secret is to simply revoke/change the secret. – sytech May 12 '22 at 16:42
-
https://stackoverflow.com/search?q=%5Bgit%5D+remove+sensitive+data – phd May 12 '22 at 16:45