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

246 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