Re-wrote git history with bfg but not reflected in earlier commits
问题 A huge folder in my repository has filled up my LFS. As instructed here, I wish to remove the folder from the remote repository and then re-write history to drop it from all previous commits. That should free up lots of space in my LFS, but is not. What am I missing? Say the repository is repo and the folder in question is repo/unwantedFolder . I did the following steps: Removed the unwantedFolder and re-committed: $ git rm -r --cached unwantedFolder/ $ git commit -a -m 'Drops folder' $ git