I need to do a subtree merge for a specific branch, if it exists on a given remote repository. The problem is that the remote repository is not checked out locally, so I can
Another way you can use in the current folder if it is a git repo to run
git branch -a | egrep 'remotes/origin/${YOUR_BRANCH_NAME}$'