Reputation: 8366
I made a mistake and I published on github my login details for my database.
How can I delete my commit and delete those details entirely from github?
Running git reset --hard
will do the trick?
Thanks!
Upvotes: 0
Views: 36
Reputation: 35296
see "Remove sensitive data"
Some day you or a collaborator may accidentally commit sensitive data, such as a password or SSH key, into a Git repository.
https://help.github.com/articles/remove-sensitive-data
Upvotes: 1