I have situation where I need to delete many documentation files like *.html files from git history
These HTML files over years of development causing git repo to bloat its size. It's difficult now to check out 10s of GBs every time.
I am able to figure out which file formats are the reason for this kind of bloating using scripts found in internet, e.g.
git rev-list --objects --all |
git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
sed -n 's/^blob //p' |
sort --numeric-sort --key=2 |
cut -c 1-12,41- |
$(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest**
up on segregating documentation file formats using grep. I hit dead end.