You accidentally pushed a file with secrets or a password that shouldn't have gotten into the Git history. The best thing to do now is to remove the file right away and add it to your .gitignore file. If we look at our Git history, we can still find the file and expose the secrets.

•2m read time•From h.daily-dev-tips.com
Post cover image
Table of contents
Removing the file right awayRemoving a file from Git onlyCompletely remove a file from Git history
11 Comments

Sort: