Hello.
I would like to know. Do anyone of you use git worktrees?
If so what are your use cases?
Did you fall in any pitfall? If so, what was them?
Regards.
Hello.
I would like to know. Do anyone of you use git worktrees?
If so what are your use cases?
Did you fall in any pitfall? If so, what was them?
Regards.
Yes, I use Git worktrees, and they’ve been a game-changer for handling multiple branches without constant checkout switching. I mostly use them for working on feature branches alongside the main branch. One pitfall I encountered was forgetting to clean up unused worktrees, which can clutter storage. Also, some IDEs don’t handle them well. Anyone else faced issues with worktrees?
Hi,
Thanks for your insight.
I use them since then and I do not meet those issues.
Simply because I do not create one by branch.
I have at least 3 on projects I work on often.
At time I may add more for special jobs. Such as I am migrating a project to the cloud. It takes time and I don’t want to switch. The problem I rather meet is problem at compile or runtime when I switch between some branches which does not look worktree related to me.
Git worktree gives you tools to manage worktrees
git worktree remove
of course and likely git worktree prune
but I didn’t use that last one.