XXX /path (master)
$ git lol -1 2.1.092
warning: refname '2.1.092' is ambiguous. // HERE
* 5c3a09e (tag: release/2.1.092-rc3) A merge commit here
|\
XXX /path (master)
$ git lol -1 refs/heads/2.1.092
* f387ed8 (origin/2.1.092, 2.1.092) Another merge commit here
|\
XXX /path (master)
$ git show-ref | grep 2.1.092
f387ed8d58ffbda85cc52f4828b061980bbb3a7d refs/heads/2.1.092
f387ed8d58ffbda85cc52f4828b061980bbb3a7d refs/remotes/origin/2.1.092
28cc8af084c435cf53076993ab85add9886abb3d refs/tags/release/2.1.092-rc2
576144d52dae89e7f749e8d41801f13844e57d22 refs/tags/release/2.1.092-rc3
XXX /path (master)
$ git here 2.1.092
warning: refname '2.1.092' is ambiguous.
commit 5c3a09e243bee1a3d81fd0a02769972fe3900b6f
Merge: e7c71d7 eded388
Author: XXXX
XXX /path (master)
$ git here 576144d52dae89e7f749e8d41801f13844e57d22
commit 5c3a09e243bee1a3d81fd0a02769972fe3900b6f
请看第3行。为什么这个refname模糊不清?我想我一定搞砸了参考资料。
答案 0 :(得分:3)
似乎2.1.092
都是:
5c3a09e
f387ed8d5
)您可以rename the tag或rename the branch。
与“Git: warning: refname 'master' is ambiguous
”一样,检查您是否没有.git/2.1.092
文件:如果是这种情况,请将其删除。