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:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,123 views 4 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