There are a bunch of posts on the internet about using git worktree command. As far as I can tell,
most of them are primarily about using worktrees as a replacement of, or a supplement to git
branches. Instead of switching branches, you just change directories. This is also how I originally
had useed worktrees, but that didn't stick, and I abandoned them. But recently worktrees grew
on me, though my new use-case is unlike branching.
The benefit is that you have everything collected in one place. You can jump between any of your local branches, and there’s no confusion about which state the branches are in.
If you have multiple clones, then there’s the risk that you’ve forgotten to sync main in all your different clones.
Then there’s also the problem that all the generated binaries will be out of sync. You still have 5 copies of each binary.
Why would you do this to yourself?
The benefit is that you have everything collected in one place. You can jump between any of your local branches, and there’s no confusion about which state the branches are in.
If you have multiple clones, then there’s the risk that you’ve forgotten to sync main in all your different clones.
Then there’s also the problem that all the generated binaries will be out of sync. You still have 5 copies of each binary.