6 ms·
git worktree. Godsend if you regularly need to work on multiple branches simultaneously.
by setpatchaddress 6y ago
git worktree.
Godsend if you regularly need to work on multiple branches simultaneously.
- jayd16 6y agoWhat does worktree provide that a fresh local clone doesn't?
- fiddlerwoaroof 6y agoReduced disk space usage for large repositories. And a convenient way to manage all your clones
- jayd16 6y agoI guess it reduces duplicating the history? Large files are by far the bulk of what I personally deal with so it don't think there's a real difference for me but I could see it helping.
- fiddlerwoaroof 6y agoYeah, it only stores the objects in the .git directory once.
- MarkSweep 6y agoIf it's a multi-gigabyte repo that you are cloning over a slow VPN, it speeds things up quite a bit.
- e28eta 6y agoMaybe too obvious, but if you’re not pushing everything to the remote, local-only content is available in both worktrees.
- monocularvision 6y ago“Let me share the Good News of git worktrees” is a thing I say often in our work Slack.