git clone --mirror https://github.com/user/repo.git
java -jar bfg.jar --delete-folders "{one,two,three}" repo.git
cd repo.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git push
git clone --mirror https://github.com/user/repo.git
java -jar bfg.jar --delete-folders "{one,two,three}" repo.git
cd repo.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git push