Conversation

; git commit -m "Here's all that stuff I've been working on for the last month" error: file write error: No space left on device fatal: unable to write loose object file ; rm -rf ~/.cargo ~/.rustup ; git commit -m "Here's all that stuff I've been working on for the last month"
8
178
This Tweet was deleted by the Tweet author. Learn more
Replying to and @snargleplax
Git history gets ridiculously bloated over time. Compacting it all with git gc --aggressive helps a lot. Setting core.compression to 9 gets a little bit more out of the zlib compression. Most size wins come from converting loose objects and smaller packs into unified packs.
1
11
Can also save tons of space with `cp --reflink` if your filesystem has support (XFS and Btrfs but not ext4). It's essentially fork(...) for files. It uses block-based copy-on-write at the destination. Can copy an identical file over another to deduplicate without sharing writes.
2
5
I moved to XFS from ext4 for better parallel NVMe performance and started using reflinks a lot. XFS doesn't have transparent compression support yet but I found it hurt build performance too much and most of my space is used by already compressed Git object/pack data anyways.
1
4
Show replies