Support Worktrees 🌲
A Git worktree is a linked copy of your Git repository, allowing you to have multiple branches checked out at a time. A worktree has a separate path from your main working copy, but it can be in a different state and on a different branch.
Git SCM reference link: https://git-scm.com/docs/git-worktree
As a user, I want GitKraken to support worktrees.
Comments: 7
-
15 Jun, '21
Gabriel LascanoThis would be a great addition I support it 100%.
-
16 Jun, '21
Elliot DerhayThis sounds nice to have to me, although I admit I probably wouldn't use it that often.
I'm curious about how it would be implemented. Would the tree indicate that there are 2 heads checked out, and consequently 2 sets of WIP changes? How would GK know which tree to use for adding commits? -
25 Jun, '21
Max MoldmannMost functionality is already there. GitKraken has learned a while ago to load worktree's as a separate repository.
GitKraken will also tell you if you are trying to checkout a branch that is already used by a linked repository.
GitKraken just does not list worktree repo's in the Project directory repo lists, you have to manually open them via the "Open repository" dialog. -
15 Jul, '21
JonathanThe way I'd want to see it is that where you would normally switch branch, that would just show you the context of that worktree (or add a dropdown next to the branch checkout for worktrees)
See image here: https://ibb.co/t3b8MBg -
26 Jul, '21
krurschakWould be great to have this Git native feature in the UI :)
-
10 Aug, '21
Alexis LucattiniThis is also needed in order to have 'sparse-configs'
-
03 Sep, '21
KevinWorktree project won't be list in "Recently Opened" or "Favorites", need manually open it every time.
When switch from other tab to worktree project tab, all previous loaded data and UI are gone, and it show a loading dialog to open repo, it's very annoying.
This bad support of worktree prevent me switching from Souretree which can treat worktree project as normal project, nearly perfect.