git checkout 报错 refname 'origin/branch-name' is ambiguous

Posted 2147483647

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git checkout 报错 refname 'origin/branch-name' is ambiguous相关的知识,希望对你有一定的参考价值。

When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file。

 

执行 rm .git/refs/heads/origin/分支名

再checkout

以上是关于git checkout 报错 refname 'origin/branch-name' is ambiguous的主要内容,如果未能解决你的问题,请参考以下文章