Git remove file from all commits
I made a "small" mistake and added a "small" (> 100MB) file to my local repo.
Two commits later I am trying to push to a remote repo on github which has a 100MB limit.
I can remove the file from my current commit with git rm --cached
, but it is still in previous commits.
How do I remove a file from all commits? I tried this answer about git filter-branch but doesn't work for mine.
+3
source to share