K Prayogo

Sometimes our cloned repository became so freakin large, for example golang’s google.golang.org/api, currently mine consume about 1.1GB. We could compress it using garbage collection parameter:

# 664 MB in about 20 seconds

Or if you have time you can use aggresive GC, like this:

# 217 MB in about 5 minutes

mv ../temp/{shallow,objects} .git

# 150 MB in about 2 seconds

Next you can reclaim space from docker using this command:

For more disk usage analysis you can use baobab for linux or windirstat on windows.

Originally published at http://kokizzu.blogspot.com.

--

--