Or on mac,
cmd+f and then search the outputted text…
OR you could use one of these two approaches:
git branch takes a
--list argument , which in turn takes a search arg.
git branch -a --list *something*
Will return only the branches containing the word “something” (note the wildcard character)
The alternative, if in bash / bash compatible terminal (git bash / cmder etc… on Windows – normal Command Prompt won’t work – unless you’ve got bash extensions installed) is to pipe the result to grep:
git branch -a | grep something
Both methods here will yield the same results.
-a shows all local and remote branches
-r shows only remote branches