Pull a certain branch only

Using the mercurial command line I can do the following to pull a certain remote branch into my project (leaving out all the other branches that may exist there):

hg pull -b default http://macserver.cellent.int:8000/scs/

Is there a way to do the same with SourceTree ?

No matter what I tried so far, I always got the complete remote project pulled over - including all branches. I even tried to select the branch in the advanced pull options with no effect.

4 answers

1 accepted

Hi Heiko,

You're right, for some reason it's not honouring that preference when it should be. I've logged it in JAC here: https://jira.atlassian.com/browse/SRCTREE-1672

Many thanks

Is this for Windows or Mac?

Tried it on a Mac !

Just to follow this up, the branch selection won't actually work because you're using the fetch extension. It's still a bug on our part as we shouldn't allow branch selections if you're using the fetch extension. I've disabled the option is the fetch extension is being used from this screen.


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,228 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