How do you search for a branch in SourceTree

Jimmyt1988 picture Jimmyt1988 · Aug 18, 2016 · Viewed 7.9k times · Source

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?

Answer

Alex picture Alex · Aug 18, 2016

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.