I am running SourceTree 1.6.11 on windows. I have cloned a Git repository but it does not show my remote branches:
Does SourceTree only show local branches?
It shows all the tags though.
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.
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 .
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".
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With