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