Git: warning: refname 'master' is ambiguous

前端 未结 5 2057
情书的邮戳
情书的邮戳 2020-12-07 17:15

I saw a few people asking the same question on here but it seems none of their advice is applicable to me. I\'m getting the warning that is in the title of this but I don\'t

5条回答
  •  日久生厌
    2020-12-07 18:00

    For future reference, I had the same issue and what ended up to work for me was the solution described here. Basically, when you get Git: warning: refname 'xxx' is ambiguous warning, you can use: git show-ref xxx to check the references to xxx branch and validate which ones are having conflict.

    In my scenario, it was a tag named xxx and branch name with the same name. The tag had been made by mistake and was removed from server so all I needed to do was to update my local tag to match the server: git fetch -p -P. This command is explained in details here

提交回复
热议问题