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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

274 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot