Repository navigation
Add support for worktrees #45
Replies: 5 comments 6 replies
|
I'm leery of this idea of coupling worktrees to (transient) branches. One reason is that IIRC, it can be difficult to delete worktrees that contain Git submodules (and my repos often do). Additionally, transient worktrees will create clutter in the recent list in IDEs, and I imagine there would be extra disk/processing churn from features like Intellisense. Due to considerations like these, my worktrees are long lived, named like Food for thought. |
|
To my understanding workfree is and alternative to Gitflow. It is way git decided to implement same functionality. So to mee it is either Git Flow or may be even same flow but through Worktrees. |
|
Working with worktrees is one thing, but having agents operate in parallel within them is another. In the current setup, a person manually creates a new branch with worktree support, it just works—you initiate it, and you’re good to go. There are pros and cons, but it requires knowing what you’re doing. Ideally, the tool should be able to automatically create branches for features, bug fixes, or even a new type Inside or outside the repository — personally, I prefer outside, but there’s no strict limit. If it’s git-excluded, it can also be inside the repository. The person or agent overseeing this operation has the full picture, and there’s no context change—you’re still within part of the filesystem that contains the original checkout. The working environment remains untouched. To switch branches/worktrees, you simply close the solution and open the new one. Merges, checkouts, or other actions happen entirely within that isolated space, keeping the rest of repository unaffected while still allowing interaction. This setup is great for coding agents—point them to the repository path, isolate their workspace, let work, commit, and submit a PR to the working branch. |
|
Shipped in v2.1.0 — |
Uh oh!
There was an error while loading. Please reload this page.
Extend topic branch workflows to support Git worktrees. When creating a topic branch, users can optionally create a corresponding worktree, enabling parallel development and simplifying AI-assisted or automated workflows where changes can be merged back once completed.
This feature includes:
~/Dev/git-flow-next-worktrees/{branch})By integrating worktrees directly into the branch lifecycle, developers can work on multiple features simultaneously without frequent context switching or repository duplication.
All reactions