我通过将它们应用于夜间构建来使用标签.然后,我想用输出describe --tags --match <latest tag>告诉我每晚构建我的图像有多远.这是用于QA测试.
我刚刚在比当前标记更旧的克隆中遇到错误.我运行了git fetch --tags,所以我在git tag输出中看到了标签,但是当我运行时git describe --tags --match <tagname>,我得到了fatal: No tags can describe <head sha1 version number>.此时我无法执行git pull来更新工作区.为什么会发生这种情况并且有解决方法?非常感谢