2014-09-04 53 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