使用git descripe时,如何更改给定的标记?

使用git descripe时,如何更改给定的标记?,git,tags,Git,Tags,我想使用“git descripe”来获取应用程序的“修订号”。 不幸的是,git存储库是使用cvs导入创建的,并且有一个丑陋的旧标记,所以我想更改它 使用“git descripe”时如何更改给定的标记 注意:今天我在IRC上问了这个问题,最后我自己找到了答案。认为它可能对其他人也有用。:) cf: 您也可能对此感兴趣: git Descripte现在支持一个--match选项,该选项可以过滤将要选择的标记感谢您提供的信息。因此,也可以使用签名标记。:) #create a new anota

我想使用“git descripe”来获取应用程序的“修订号”。 不幸的是,git存储库是使用cvs导入创建的,并且有一个丑陋的旧标记,所以我想更改它

使用“git descripe”时如何更改给定的标记

注意:今天我在IRC上问了这个问题,最后我自己找到了答案。认为它可能对其他人也有用。:)

cf:

您也可能对此感兴趣:

git Descripte现在支持一个--match选项,该选项可以过滤将要选择的标记

感谢您提供的信息。因此,也可以使用签名标记。:)
#create a new anotated tag because by default git describes only looks for those
git tag -a NEWTAG

#push the new tags to the remote repository
git push --tags