Show HN: Gitfold – every Git branch as a folder, ready in a second github.com · ...
Show HN @show
Show HN: Gitfold – every Git branch as a folder, ready in a second github.com · 4 points · 1 comments · HN thread
TL;DR Gitfold is a Linux FUSE tool that mounts an existing git clone so every branch and commit appears as a folder, opening in about a second without copying files. Each folder is a real linked git worktree, and a workspace stores only the files its owner changes. The project page covers install, usage, performance trade-offs, and how it differs from git worktree, overlayfs, EdenFS, jj and similar tools.
- Mounts an existing clone with no new clone and no server; unchanged files are read from git's object store and only edited files are stored, under .git/gitfold/.
- On a Chromium branch (512k files, 4.4 GB) it opens in 0.87 s, versus over 17 s and 5.5 GiB for git worktree add.
- Writes go through FUSE: a Linux kernel build is 2.5-4% slower than in a worktree, an incremental one 11-29% slower, and creating many small files 4-6x slower.
- Needs Linux with FUSE 3 (kernel 5.1+) and git, with no root; macOS and Windows are not supported, and Git LFS content, .gitattributes filters and submodules are not fully handled.
- Branches built on other branches follow their parents' new commits automatically, and read-only views show a branch merged with its dependents, optionally including uncommitted work.
- Ships a Claude Code plugin that gives each claude -w session its own workspace.
Links in the post
- gitfold comparison with alternatives: Compares gitfold with git worktree, sparse checkout, partial clone, reflink copies, overlayfs, EdenFS, VFS for Git, GitFS, jj workspaces, stacked-branch tools and containers, with measured costs and when each is the better choice.
Discussion The thread is very small: a single comment from a user who had built something less ambitious along similar lines and found the project fun to read about. The mood is friendly and appreciative, with no questions or criticism raised yet.
- Enthusiastic praise for the project (most): The only commenter calls it a great and very fun project. They say they built a less ambitious version starting from a similar problem, and link to an earlier HN discussion of that work.
Links from the comments