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.
Asked
Active
Viewed 58 times
0
-
1If this repo is in any way public change your credentials immediately. – pretzelhammer Aug 25 '18 at 03:59
-
You're confusing git and github. (I can't edit the post because there'a already a pending edit) – mrtnmgs Aug 25 '18 at 05:51
1 Answers
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