When I cloned a remote repository, I used the following command-
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
After
You can list the branches directly on the remote with git ls-remote command:
git ls-remote
git ls-remote git://sub.domain.com/repo.git
Then use git fetch command to fetch a specific branch and git checkout command to switch to the branch.
git fetch
git checkout