-1

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

James Z
  • 12,104
  • 10
  • 27
  • 43
Kumar
  • 1
  • 4
  • 1
    I 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

0 Answers0