How can SourceTree clone a branch?

I don't see any options in the clone dialog to do this:

git clone --branch 3.0.0-wip git://github.com/twitter/bootstrap.git

2 answers

Hi Lee,

If you're using the Mac version then you can hit the "Advanced Options" pop-out when you specify the repository which will allow you to specify a branch as follows:

If it's for the Windows version then there's also the same concept as shown below:

Hope that helps

On the Mac version, when I click "Advanced" those options are not shown. The arrow turns downward, but nothing is displayed. I'm using 1.6.2.2.

You need to actually enter a clone URL first. The reason is that the options in the advanced section are different depending on whether the URL points to a Git, Mercurial or Subversion repository.

I already tried entering a url, and SourceTree did prepopulate the dest path, but still no advanced section is available. The url I tried is: git://github.com/twitter/bootstrap.git

Hi Lee,

I've just tried this myself with the same URL. Perhaps you're clicking the advanced options before you're entering the URL. The advanced options will only expand out if you click the arrow after you've entered the URL and it has resolved. So once the repository type is shown that's when you can click on it.

Hope that helps

Found the problem: After you enter the URL the Advanced panel will not open until ST pings the URL. Since this can take up to ten seconds, developers can click the Advanced arrow multiple times and the panel will not expand.

Even though a small spinner is displayed, this is actually UI validation bug. Either the Advanced arrow should be disabled until the URL ping is complete, or the panel should be expandable before a server response is received.

Thanks for helping to isolate the problem.

Found the problem: After you enter the URL the Advanced panel will not open until ST pings the URL. Since this can take up to ten seconds, developers can click the Advanced arrow multiple times and the panel will not expand.

Even though a small spinner is displayed, this is actually UI validation bug. Either the Advanced arrow should be disabled until the URL ping is complete, or the panel should be expandable before a server response is received.

Thanks for helping to isolate the problem.

I meant to comment on above not create an answer, this can be deleted.

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

234 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