$ du -ks .git
784113 .git
$ git gc
Counting objects: 30237, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9165/9165), done.
Writing objects: 100% (30237/30237), done.
Total 30237 (delta 19514), reused 30077 (delta 19414)
$ du -ks .git
939785 .git
我预计在 a 后gc
,.git 目录要么更小,要么与之前的大小相同,但并不是增长了近 20%。这该如何解释呢?