search for a branch git code example Example: git search all branches git grep "string/regexp" $(git rev-list --all)