2014-09-04 85 views
0

所有分支我分叉回购:https://github.com/CruceGameDevel/CruceGame和我克隆我的副本到本地机器:更新的混帐

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

如果我运行:

$ git branch 
* master 

为什么只显示主分支?我试过git remote updategit fetch --all,但不起作用。我需要做什么?也许我做错了,所以请给我正确的克隆分叉回购的步骤。 谢谢!

+0

请参阅http://stackoverflow.com/questions/67699/how-to-clone-all-remote-branches-with-git。 – Landys 2014-09-04 09:06:50

回答

2

尝试

git branch -a 

远程跟踪分支机构不在git branch没有-a上市。

+1

另外,你可以使用'git branch -r',它只显示远程分支,但不显示本地分支。您也可以查看[documentation](http://git-scm.com/docs/git-branch)获取更多信息。 – 2014-09-04 09:46:31