Article 53KSW [GIT] delete file and its commits history

[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?latest?d=yIl2AUoC8zA latest?i=pl_GVFoOLds:MlXpsW32TkE:F7zBnMy latest?i=pl_GVFoOLds:MlXpsW32TkE:V_sGLiP latest?d=qj6IDK7rITs latest?i=pl_GVFoOLds:MlXpsW32TkE:gIN9vFwpl_GVFoOLds
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments