Is there a way to check whether a remote's fetch config will allow a given branch to be fetched and checked-out?
By default, any branch is in scope for fetch and checkout but if you're using "--single-branch" with your clone or you've already made surgical changes to your default fetch refspecs ("git remote set-branches"), then you might be able to force your fetch to bring down the right branch via arguments but a "git checkout" may unconditionally deny the existence of a branch.
It seems like there would at least be a plumbing feature that can filter one or more items against that config.
More context: Why can't Git resolve remote branches when --single-branch is used?