How do I create a linked working tree?

I tried to use the Add Working Copy pane of the Clone / Add / Create Repository function to create a second working copy, but get the message "This is not a valid working copy path". There is nothing special about the working copy path: it is just an empty folder. 

Am I doing this right? What I want is a second copy (different branch) of the same code, working on the same repo. I think the git worktree command is what I want, but I'd like to manage it from within Souircetree if that's possible. Any help on this would be greatly appreciated.

1 answer

You have to create the working tree via command line, then use Add Working Copy (which is essentially "Manage an existing repository") to manage it with SourceTree.

Vote up this issue if you'd like to be able to create the working tree in the GUI: https://jira.atlassian.com/browse/SRCTREE-3204

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

564 views 1 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you