i use worktree to create a different work area,but the sourcetree cannot see the worktree branch
Hey @yang mack ,
Did you manage to clear this or find a solution to your problem? If so, it would be helpful if you could share whatever findings or insights you have 👀
Cheers,
Tobi
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.