1 example for git grep
# Search content of all remote branches for 'search-string'.
git grep 'search-string' $(git ls-remote . 'refs/remotes/*' | cut -f 2)
# Search content of all remote branches for 'search-string'.
git grep 'search-string' $(git ls-remote . 'refs/remotes/*' | cut -f 2)