We’re currently evaluating SubGit, and it looks really promising so far!
One issue we stumbled upon is the repository size: After importing our SVN repository (approx. 10’000 commits), the Git repository size is around 3 GB. For comparison, the same repository imported using git svn was less than 100 MB.
Is there any way to reduce the repository size? Like this, cloning is painfully slow.
What we tried:
In a local repository, we were able to get the size down to below 100 MB using git repack:
$ du -h -d 1 .git 2.8G .git/objects 4.0K .git/info 232K .git/logs 44K .git/hooks 228K .git/refs 0B .git/branches 2.8G .git $ git repack -A -d -F Counting objects: 142310, done. Delta compression using up to 24 threads. Compressing objects: 100% (132481/132481), done. Writing objects: 100% (142310/142310), done. Total 142310 (delta 94702), reused 0 (delta 0) $ du -h -d 1 .git 58M .git/objects 16K .git/info 232K .git/logs 44K .git/hooks 228K .git/refs 0B .git/branches 59M .git
However, doing the same in the server-side repository (GitLab) did not have any effects, although git repack seemed to be successful.
Any hints are greatly appreciated.