logoalt Hacker News

PurpleRamentoday at 1:17 PM0 repliesview on HN

> In git you can have only one worktree per branch. For example, if you have a worktree on main you cannot have another one on main.

You can detach the worktree from the repo, and checkout multiple branches at the same time to different locations. Not sure if this also allows checking out the same branch to multiple locations at the same time. You can also have a swallow clone, so you don't have to waste space for the full repos history. So at the end you still have to waste space for each worktree, but this isn't something jujutsu can avoid either, or can it?