0

I accidentally pushed a file with credentials. How do I remove all the history of that file? I cannot take down the repo because there is multiple people working on it.

pretzelhammer
  • 12,263
  • 15
  • 41
  • 88
Javascriptify
  • 39
  • 2
  • 5

1 Answers1

1

There is no way to do it. If its public, its compromised. One thing you can do is create a new repo without sensitive data or remove that particular commit.

deadcoder0904
  • 5,798
  • 7
  • 43
  • 124