> 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
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
git gc
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.
git prune