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
posted @ 2018-02-26 18:15  2147483647  阅读(2556)  评论(0编辑  收藏  举报