It's made a big difference in readability and cleanliness. I'll often use, eg, `mktemp -d` with a template argument that's relevant to the usage, then use the base name of the temporary directory as the worktree branch, followed by `git fetch <remote> <remote-branch>:<worktree-branch>`.
I've been thinking about using worktrees more for my general development, since I'm frequently working across multiple branches.
Any recommended workflow for coordinating multiple agents? For instance, handling naming conventions, cleanup strategies, or preventing race conditions when multiple agents try to create worktrees at the same time?
This seems like it could be really powerful for that use case, especially with the hook system for per-worktree setup.
https://github.com/yankeexe/git-worktree-switcher
It does what it says on the tin.
wry_discontent•4mo ago
I'll have to install this and check it out