css-loader icon indicating copy to clipboard operation
css-loader copied to clipboard

Special Request: can you perhaps clean this repo history..?

Open ZaLiTHkA opened this issue 4 years ago • 0 comments
trafficstars

I cloned this repo the other day to look at things more closely, and the size of the download surprised me somewhat... Git downloaded 25MB-odd of objects, yet the actual project files after the download (excluding .git folder) was only 867KB.

digging a bit deeper, the merge from vineethtrv/marketing into master, and specifically the video files it contains, seems to be where this size jump is coming from.

as a test, I just performed the following steps:

  • created temp branch at commit f9388f45c298b89d8683fc40eeeb55666592d7d4
  • cherry picked commit f51b9ae2cad53582f009240f04fd830142799328
  • hard reset master to the new commit (which removes the vineethtrv/marketing branch entirely)
  • execute git reflog expire --all --expire=now
  • execute git gc --prune=now --aggressive

after this, the entire repository dropped to only 1.44MB, .git folder included...


@vineethtrv, is there any chance you might be able to do this on your side and force push to remove these objects from GitHub as well? I'm just thinking it might be better to catch this now, before the project grows too much further and this becomes more difficult to do. 🤔

ZaLiTHkA avatar Nov 19 '21 06:11 ZaLiTHkA