|
|
|
|
|
by jamesfmilne
471 days ago
|
|
Would be nice if git could make use of this on macOS. Each worktree I usually work on is several gigs of (mostly) identical files. Unfortunately the source files are often deep in a compressed git pack file, so you can't de-duplicate that. (Of course, the bigger problem is the build artefacts on each branch, which are like 12G per debug/release per product, but they often diverge for boring reasons.) |
|
There is also ".git/objects/info/alternates", accessed via "--shared"/"--reference" option of "git clone", that allows only sharing of object storage and not branches etc... but it is has caveats, and I've only used it in some special circumstances.