There is probably a few tricks git could pull but frankly most cases i have fixed up involve using sparse checkouts and/or just running git-sizer and cleaning up the glaring issues. People do some insane stuff to their git histories and don't know how to cleanup their branches.