Koha Test Wiki MW Canasta on Koha Portainer
Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.
For the current Koha Wiki, visit https://wiki.koha-community.org .User:Victor Grousset - tuxayo/Shrink Koha git history after clone
Jump to navigation
Jump to search
When you will finish using your computer for the day, you can run the following
git gc --prune=now --aggressive
You need to have at least 9 GiB of free RAM or swap.
After a few hours, it should shrink the .git directory from around 4.2GiB to less than 750MiB.(2020-05)
Then you can keep a copy somewhere. If you need to clone again for you or someone else, then you can start by copying that.
That will spare more than 4.2GiB (I don't know the current size) of download.
2022-05: A git repository that grew back to 2.2 GiB was shrunk back to 770 MiB after 5h20 on a i5-3320M.