Make repo size lower
belgattitude opened this issue · comments
Size starts to become big... Would like to remove some obsolete history, hope it does not break possible forks/clones...
Possible:
git clone https://github.com/belgattitude/nextjs-monorepo-example.git
cd nextjs-monorepo-example
git filter-repo --invert-paths --path .yarn --path apps/web-app --path apps/blog-app --path packages/bar --path packages/foo
git filter-repo --invert-paths --use-base-name --path-glob '*water*.png' --path-glob '*water*.jpg'
-> du -h .git
-> 260Mb to 53Mb
Optionnally all lock files
git filter-repo --invert-paths --path yarn.lock
To make it down to 13Mb
Then
git remote add origin https://github.com/belgattitude/nextjs-monorepo-example.git
git push origin --force --all
I'll investigate a bit