I try to remove files from git history.
I am using git filter-repo whose github repository is https://github.com/newren/git-filter-repo, but have some troubles.
As the example says here,
https://htmlpreview.github.io/?https://github.com/newren/git-filter-repo/blob/docs/html/git-filter-repo.html#EXAMPLES\
and
https://marcofranssen.nl/remove-files-from-git-history-using-git-filter-repo/
I have tried these commands to remove .pyc files with --force flag:
sudo git filter-repo --path-glob '*/*.pyc' --invert-paths
sudo git filter-repo --path-glob '*.pyc' --invert-paths
sudo git filter-repo --path *.pyc --invert-paths
but nothing has effect.
The output of the command seems good but when I check the .pyc files, they all still exists.
Output:
Parsed 28 commits
New history written in 0.46 seconds; now repacking/cleaning...
Repacking your repo and cleaning out old unneeded objects
HEAD is now at 1bc0b68 Re-add templates directory
Enumerating objects: 1084, done.
Counting objects: 100% (1084/1084), done.
Delta compression using up to 2 threads
Compressing objects: 100% (267/267), done.
Writing objects: 100% (1084/1084), done.
Total 1084 (delta 784), reused 1084 (delta 784), pack-reused 0
Completely finished after 1.33 seconds.
As it seems everything looks like going well but the files are not removed on git. The files are perfectly preserved and nothing becomes different.
Anybody knows the problem?