Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you search for a branch in SourceTree

How do you search for a branch in SourceTree.

It has gotten to the point where i have hundreds of branches and looking through a list in the remote branch tree is next to impossible.

Is there a way of doing it?

like image 740
Jimmyt1988 Avatar asked Aug 18 '16 12:08

Jimmyt1988


People also ask

How do I search on Sourcetree?

In the source tree, click a dimension, hierarchy, or level, and click Search metadata. In the Words box, type the words or characters for which you want to search. In the Options box, click the search parameter you want to use. If you want to perform a case-insensitive search, select the Case insensitive check box.

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

Yes, there is a filter provided in SourceTree at the bottom left corner below the list of all branches. See in the screenshot. NOTE: This is on MAC..

enter image description here

like image 138
sachin Avatar answered Oct 04 '22 15:10

sachin


I don't think this is possible directly in SourceTree, but you can grep branches via the command line

git branch --all | grep <query> 

for example

git branch --all | grep notifications 

Will return all branches (remote or local) that contain notifications in the name.

like image 37
Alex Avatar answered Oct 04 '22 15:10

Alex