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
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的主要内容,如果未能解决你的问题,请参考以下文章
IDEA中使用git合并分支的过程报错:cant checkout because of unmerged files
git pull 报错: Pulling 1 repository Checkout conflict with files
IDEA中使用git合并分支的过程报错:cant checkout because of unmerged files
git checkout 报错error: Your local changes to the following files would be overwritten by checkout: da