首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何更改使用git describe时给出的标签?

如何更改使用git describe时给出的标签?
EN

Stack Overflow用户
提问于 2009-05-12 14:02:33
回答 2查看 1.5K关注 0票数 1

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

如何更改使用"git describe“时给出的标签?

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

EN

Stack Overflow用户

发布于 2009-05-12 14:06:12

代码语言:javascript
运行
复制
#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?

票数 3
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/852943

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档