34

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?

Alex
  • 37,502
  • 51
  • 204
  • 332
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233

4 Answers4

26

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

sachin
  • 481
  • 1
  • 6
  • 7
12

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.

Alex
  • 37,502
  • 51
  • 204
  • 332
-1

In the sourcetree under the left menu look for 'REMOTES' under this you can search the origin where all the branches can be viewed or searched

SGN
  • 341
  • 1
  • 7
  • 23
-3

Jump to:
Jump to

Use the Jump to: option in the top right of the log view.

Dharman
  • 30,962
  • 25
  • 85
  • 135
  • Can't search a branch name from the "Jump to" menu. You need to scroll down the list. You can search for a (partial or complete) commit SHA though. – Steve Riley Nov 28 '19 at 15:25