1. 程式人生 > >git checkout 報錯 refname 'origin/branch-name' is ambiguous

git checkout 報錯 refname 'origin/branch-name' is ambiguous

git pen pos this his del check log heads

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