I need to deal with a git repository hosted on a gitlab instance. The repo.git/objects
folder is 3.8GB large on the server's filesystem (it the same same as reported in GitLab's UI).
However when I'm cloning it with git --mirror remote-url
, it's only 120MB large... !?
I've read http://stevelorek.com/how-to-shrink-a-git-repository.html and indeed there are remotes branch, but even after following the "deep clone" step and issuing git fetch --all
I don't see any differences. What's happening here ?
My ultimate goal is then to shrink/cleanup the repo on disk, of course.