我有git 1.8.3和一個有'master'和'develop'分支的回購。無法追蹤遠程分支 - 無法識別原產地/開發
從我的地方 '發展' 分支,我嘗試做以下命令 -
git branch -u origin/develop
,我得到的
error: the requested upstream branch 'origin/develop' does not exist
的錯誤,當我檢查git branch -r
我只看到origin/master
我試圖找到一種方法來讓我的系統認識到還有一個origin/develop
,並且找不到任何可行的解決方案。
你嘗試運行'git fetch origin'?它應該從遠程獲取所有分支,而不僅僅是主控。 –
是的......可能是我的回購有問題,我多次試過 –
如果你用'--depth'或'--single-branch'克隆版本庫,它默認只跟蹤一個分支。 –