git refname 'origin/master' is ambiguous

前端 未结 4 2157
遥遥无期
遥遥无期 2020-12-02 06:46

I have a git repository that is tracking several remote branches:

$ git branch -a
* master
  remotes/git-svn
  remotes/origin/master
  remotes/trunk
<         


        
4条回答
  •  长情又很酷
    2020-12-02 07:00

    I had a very similar problem due to an accidental tag named "master", showing in git show-ref master as refs/tags/master. The fix in this case was:

    git tag -d master
    

提交回复
热议问题