Prerequisites A Git repo with files stored using Git LFS The BFG Repo Cleaner tool (requires java itself) Have a clean HEAD The BFG is a simpler, faster alternative to git-filter-branch for cleansing bad data out of your Git repository history… The One-Liner git lfs ls-files –all | awk ‘{split($0,a," - ");l=split(a[2],b,"/"); print b[l]}’ | xargs -d\n -n1 java -jar ../bfg.jar -D && \ git reflog expire –expire=now –all && \ git gc –prune=now –aggressive What’s Happening?