grimoirelab
grimoirelab copied to clipboard
shrink grimoirelab repo size
the grimoirelab repository is 265MB to be pulled from GitHub, it looks at bit heavy.
If it's relevant, I found this thread https://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-git-repository
You might have tried some of those, but at least we have an issue where we discussion and work on.
Thanks @mhow2 for opening this issue. I tried BFG in the past but with no success (see details below). Do you have any idea to reduce the size of the repo?
The command below lists the files in terms of their size (in bytes):
git ls-tree -r -t -l --full-name HEAD | sort -n -k 4
100644 blob 2e606c8f16696ea59acd8c1064b4fe50a9df2855 1276786 docs/img/dashboards/eclipse-large.png
100644 blob 1ba154dd1441e34d606c2b9cc11cf5282879704f 1428946 docs/img/dashboards/coreos-large.png
100644 blob b66e0f86ca373696b0099e4fa337b3a1b5565571 1467091 docs/img/leaflets/leaflet-sortinghat-icse.svg
100644 blob 4a73dc471d2e6fb36554824ca8f43ce1edf6ff82 1593150 docs/img/dashboards/opnfv-large.png
100644 blob d87e27d66aefea0fa6bc8e189078ede9be072e4e 1618562 docs/img/dashboards/cauldron-large.png
100644 blob 99ad46e3ffc09618326d400dfd89c96a785668ee 87748984 tests/cache-test.tgz
The tool https://rtyley.github.io/bfg-repo-cleaner/ seems a good candidate to remove heavy blobs (cache-test)
Steps:
make a copy of grimoirelab (grimoirelab_slim) in my profile
git clone --mirror https://github.com/valeriocos/grimoirelab_slim
$ java -jar /home/slimbook/Descargas/bfg-1.13.0.jar --strip-blobs-bigger-than 60M grimoirelab_slim.git/
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git push
Result:
All tags after 0.2.5 are lost
Closed due to no activity.