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
  • 13,874
  • 15
  • 47
  • 98
Javascriptify
  • 39
  • 2
  • 6

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
  • 7,232
  • 12
  • 66
  • 163