Note: I have tested this on my bitbucket dummy repo
I have mistakely added password on
README.md
and after many commits, I was reminded what I have done. So the below stuff is to correct my fault
Download BFG Repo-Cleaner
Download from here
wget http://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar
Otherwise, go to this page and download it from there
git clone --mirror git://example.com/some-repo.git
Note: I want to delete completely so i have added --no-blob-protection
java -jar ~/Downloads/bfg-1.13.0.jar --delete-files <File_name_here> --no-blob-protection some-repo.git
cd some-repo.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git push