0

I forked a repo: https://github.com/CruceGameDevel/CruceGame and I cloned my copy to local machine:

$ git clone https://github.com/MihaiPro/CruceGame

If I run:

$ git branch
* master

Why it show only master branch? I tried git remote update and git fetch --all but doesn't work. What I need to do? Maybe I did something wrong, so please give me correct steps of cloning a forked repo. Thanks!

Messa
  • 21,202
  • 4
  • 52
  • 73
Mihail Feraru
  • 165
  • 2
  • 14
  • Refer to http://stackoverflow.com/questions/67699/how-to-clone-all-remote-branches-with-git. – Landys Sep 04 '14 at 09:06

1 Answers1

2

Try

git branch -a

Remote-tracking branches are not listed in git branch without -a.

Messa
  • 21,202
  • 4
  • 52
  • 73
  • 1
    Alternativly you can use `git branch -r`, which will just show the remote branches but not the local ones. Also you can take a look at the [documentation](http://git-scm.com/docs/git-branch) for further information. – Sascha Wolf Sep 04 '14 at 09:46