git gc: no space left on device, even though 3GB available and tmp_pack only 16MB

前端 未结 2 1300
北海茫月
北海茫月 2021-02-07 12:07
> git gc --aggressive --prune=now
Counting objects: 68752, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (66685/66685), done.
fatal: sha1 f         


        
2条回答
  •  广开言路
    2021-02-07 12:54

    Similar scenario (about 2.3G available), except git gc itself would also fail with fatal: Unable to create '/home/ubuntu/my-app-here/.git/gc.pid.lock': No space left on device

    What worked was to git prune first, and then run the gc.

提交回复
热议问题