Given a certain commit, I want there's a command/option for git to make it search the remote repo (e.g. origin) and tell me the branches there which contain that commit.
So that I can pick the wanted branch and fetch it afterward.
The reason I need this is that there are hundreds of (could be more) branches, but I just need a few of them, and don't want to fetch all other branches.
I guess this could be an option for git-remote, so that with a given remote and commit, it returns a list of branches (or even tags). The list size might default to a number and should be customizable.
Thanks