mulitple working directories

hi all, can we create multiple directories in Source Tree.

ex: i have working directory W1 cloned and i was working on it. whatever changes i do here will be updated.before i raise codereview and i want to create new working direcotory W2 and i want to work on it. changes done to W2 should affect W1 and vice-versa.

is it possible in Source Tree ?

please help me........... thanks in advance.........

1 answer

SourceTree definitely does NOT provide a way to do what you want the way you describe. As far as I have seen, Git does not support it (I expect Mercurial doesn't either), so SourceTree can't.

A partial solution (can be done with SourceTree), is as follows:

Let's say W1 is the working copy of R1 (local repository 1). You can use SourceTree (or any other Git client) to clone R1 to a new local location (R2). Both R1 and R2 are local, and you can push and pull between them. You can also set up R2 with the same remote(s) as R1. If you are just working on SourceTree and you want to push an R2 change through R1 to the remote, you'll actually have to checkout that branch in R1, push it, then switch back to whatever branch R1 was on to begin with.

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...

706 views 3 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