Jimmyt1988 Jimmyt1988 - 1 year ago 130
Git Question

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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download