i use worktree to create a different work area,but the sourcetree cannot see the worktree branch
Hi @yang mack ,
Are we talking here about managing/displaying multiple Git worktrees within a single repo view? If so, I believe Sourcetree doesn't support that at the moment.
When you use the
git worktreecommand to create a different work area, Git creates a new directory with its own linked .git file pointing back to the main repository. Sourcetree is designed to manage one working directory per repository bookmark.
What you could do/try as a workaround 🤔:
You could also ensure that the branch you're looking for has been pushed to the remote if you expect to see it in the Remotes section of your main repository bookmark.
If it is a purely local branch created within a worktree, it will only appear in the Branches list of the bookmark pointing to that specific worktree directory.
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.