[GIT] delete file and its commits history
by czezz from LinuxQuestions.org on (#53KSW)
I want to permanently remove one file in git and start over (by permanently remove i mean to remove also its commit history).
I tried the following:
Code:git filter-branch --tree-filter 'rm -f file1.txt' HEAD
git filter-branch -f --tree-filter 'rm -f file1.txt' HEAD
git push origin --force --allBut when I recreate file1.txt then commit and push it, I still see its commit history in GIT web gui.
How to purge completely and forever its history?


I tried the following:
Code:git filter-branch --tree-filter 'rm -f file1.txt' HEAD
git filter-branch -f --tree-filter 'rm -f file1.txt' HEAD
git push origin --force --allBut when I recreate file1.txt then commit and push it, I still see its commit history in GIT web gui.
How to purge completely and forever its history?