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.
Question
Why don't I get all the branches with git clone
?
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.
Question
Why don't I get all the branches with git clone
?
git branch
only shows local branches by default; use git branch -r
to see remote branches or git branch -a
to see all. git clone
only creates one local branch, master
by default, which tracks (again, by default) the master
branch on the remote repository.