Git Error: warning: 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:

1 $ rm .git/refs/heads/origin/branch-name

  

原文地址:https://www.cnblogs.com/cheng6018/p/9431729.html