0
Offer complete workflow for worktrees
I am using AI agents more than in the past to do several things in parallel. For that, the worktree feature is quite useful, and SmartGit already has the menu items in the File menu to create/remove/prune worktrees.
But for me this does not assemble to a nice and easy workflow. Here is what I would like to be able to do from the UI:
- Add a new worktree from a remote branch, ideally from the context menu of that remote branch.
- Currently I have to check the branch first out to a local branch, changing the branch in an existing worktree, to be able to do "Add worktree...", only to change the branch in my existing worktree back to the original branch.
- Our repository is using submodules - it would be great if "Add worktree..." could be configured to automatically initialize the submodules.
- Ideally I would be able to configure "Add worktree" to not not open automatically a new window like it does now, instead just move over to the other worktree.
- Remove an existing worktree by right-clicking on it from the context menu on the worktree repo (again without having to have to load the repo in advance).
- Currently, I manually delete the tree and then use "Prune..." which is clumsy because I have to first find the folder in the file explorer.
- "Remove worktree..." does not work for me because it does not handle submodules - it would be great if the UI function could remove (clean) submodules, and then remove the worktree.
- For "Remove..." I also don't need to load the repo - so "Remove worktree..." could be always available, but fail if the repo is not a worktree?
Customer support service by UserEcho
SmartGit 26.1 Preview comes with a couple of worktree-related improvements already, which we have found useful in combination with AI agents: https://www.smartgit.dev/download/preview/
I tried the new version, and the workflow suggested above is still requiring too many clicks. I would still appreciate if the two suggestions above could be implemented.
When deleting a local worktree branch, e.g. from the main repository, SmartGit 26.1 will first ask you to confirm the removal of the worktree.
That is useful, thanks! Two remarks why in my particular workflow it is still a bit cumbersome:
1. The removal of the working folder fails if it has initialised submodules.
2. It would be great if it would also be possible to create a worktree from the context menu of a remote branch?
I am not sure from which view you are attempting this, but when I am on the discover view,
- On the repositories panel, when I right click > remove a worktree (created from claude), it does not ask at all to remove the worktree and just remove the "shortcut"
- On the branch panel, when I double click a branch that has a corresponding worktree, it switches me to the worktree, does not let me do anothing else. This is inconvenient when I wanted to keep the current repository (for example when I have a running npm process I want to hot reload on a different branch) and just wanted to switch to the same branch that ran under a worktree