我想使用"git describe“来获取应用程序的”修订号“。不幸的是,git存储库是使用cvs-import创建的,并且有一个丑陋的旧标记,所以我想要更改它。
如何更改使用"git describe“时给出的标签?
注意:我今天在IRC上问了这个问题,最后我自己找到了答案。我想这可能对其他人也有用。:)
发布于 2009-05-12 14:06:12
#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
cf:http://www.kernel.org/pub/software/scm/git/docs/git-describe.html
您可能也会对此感兴趣:How can I pass the output of a command as a compiler flag through a Qt project file?
https://stackoverflow.com/questions/852943
复制相似问题