1. 程式人生 > >git簽出遠端分支問題解決

git簽出遠端分支問題解決

使用命令

$ git checkout -b develop origin/develop
$ git checkout --track origin/develop

簽出遠端分支,出現以下錯誤:
fatal: Cannot update paths and switch to branch 'develop' at the same time.
Did you intend to checkout 'origin/develop' which can not be resolved as commit?

解決方法:

$ git fetch

$ git checkout -b develop origin/develop