I pushed a file containing a password to my repo by mistake - FYI the repo is just a small personal project.
Once I realised the password was present I added the file to .gitignore
and executed git rm -r --cached <filename>
, committed and pushed to the repo.
I now realise the password is still present in the history - what is the best way to remove it?
I read the Remove sensitive data page on Github which suggests changing the password - which I have done - but I would like to remove the history as well.