Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Atlassian SourceTree does not show remote branches?

I am running SourceTree 1.6.11 on windows. I have cloned a Git repository but it does not show my remote branches:

enter image description here

Does SourceTree only show local branches?

It shows all the tags though.

like image 460
u123 Avatar asked Dec 08 '14 10:12

u123


People also ask

How do I find remote branches in Sourcetree?

Any/All remote branches should be visible in the repository sidebar under the remotes heading, you can then double click on the remote branch to check out a local copy.

How do I display a remote branch?

To view your remote branches, simply pass the -r flag to the git branch command. You can inspect remote branches with the usual git checkout and git log commands. If you approve the changes a remote branch contains, you can merge it into a local branch with a normal git merge .

How do I get all branches in Sourcetree?

If you can see it in SourceTree, it's stored on your computer. If you want to check out one of the branches, double click it. You can switch to any of the branches whenever you want without an Internet connection. There is no way to — and no need to — "pull all branches".


2 Answers

I found this to checkout a remote branch:

Repository > Checkout > Checkout New Branch > Checkout remote branch [select remote branch to checkout]

The branch I selected is now shown in the menu on the left under branches, (although still not in the branches dropdown box along the top)

Hope this helps.

like image 192
ellcub Avatar answered Sep 21 '22 17:09

ellcub


This is an old post but I thought as I got here, others may too I had this issue in 1.6.2 Source tree (in Oct 2015) and my new remote made on another machine 5 days ago was not showing up in Source Tree on my work machine. I can see my remote branch with command line and in BitBucket web site but not in SourceTree.

Anyway, after ten minutes of doing nothing my remote branch showed up.

I then found in options that there is a setting for refreshing remotes which not surprisingly was set to 10 minute intervals.

On top of this it is possible to refresh immediately with ALT+SHIFT+R

Hope this helps someone.

Dave

like image 23
David Bridge Avatar answered Sep 19 '22 17:09

David Bridge