Cannot update paths and switch to branch at the same time(转)

简介: 当使用git进行操作: git checkout -b local-name origin/remote-name 出现错误: fatal: git checkout: updating paths is incompatible with switching branches.

当使用git进行操作:

git checkout -b local-name origin/remote-name

出现错误:

fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/remote-name' which can not be resolved as commit?

解决办法:

git remote show origin

git remote update

git fetch

git checkout -b local-name origin/remote-name

http://www.cnblogs.com/iminic/p/4398265.html

相关文章
|
8月前
|
前端开发 5G
Search space set group switching(一)
根据R17 38.300的描述,UE可以通过PDCCH monitoring adaptation机制实现power saving的目的,这其中就包括PDCCH monitoring skipping和search space set group (SSSG) switching两种机制。PDCCH monitoring skipping是R17才提出的机制,就是UE 可以在PDCCH skipping的时间内不监视 PDCCH的功能;search space set group (SSSG) switching R16提出,R17进行了部分增强。
|
Shell 开发工具 git
Git使用commit命令时报错“bad numeric config value ‘ture‘ for ‘color.ui‘: invalid unit”(已解决)
Git使用commit命令时报错“bad numeric config value ‘ture‘ for ‘color.ui‘: invalid unit”(已解决)
186 0
Git使用commit命令时报错“bad numeric config value ‘ture‘ for ‘color.ui‘: invalid unit”(已解决)
Sap Ds Data is not available. Increase the time-out interval values in Debug | Options
Sap Ds Data is not available. Increase the time-out interval values in Debug | Options
90 0
|
开发工具 git
Git: Cannot update paths and switch to branch 'feature' at the same time.
Git: Cannot update paths and switch to branch 'feature' at the same time.
157 0
【SVN】is not known to exist in the repository and is not part of the commit, yet its child
【SVN】is not known to exist in the repository and is not part of the commit, yet its child
705 0
【SVN】is not known to exist in the repository and is not part of the commit, yet its child
We cannot activate inspection type for article master in transaction code MM41?
We cannot activate inspection type for article master in transaction code MM41?
We cannot activate inspection type for article master in transaction code MM41?
Unable to add window --token is not valid
Unable to add window --token is not valid
|
Web App开发 测试技术
myAppointment OPA test case issue
myAppointment OPA test case issue
106 0
myAppointment OPA test case issue
2015-03-18 current note update logic in my task
2015-03-18 current note update logic in my task
72 0
2015-03-18 current note update logic in my task
add to -append Backend implementation
add to -append Backend implementation
91 0
add to -append Backend implementation