This question already has an answer here:
If I do
$ git clone https://github.com/dtu-compute/docker-mongodb $ cd docker-mongodb $ git branch * master
but if you look at the Github branch page, there are two branches.
Why don't I get all the branches with
if you checkout the branch you will see it works fine
But why isn't it listed? have it something to do how the branch were pushed?
git branch -a will list all of them
If a remote repo has no master branch, you may ask why git clone clones nothing. In fact, it clones everything if no option like --single-branch or --depth is used. They are hidden at first. git branch only lists the local branches.