git标签有一个标准的命名约定吗? [英] Is there a standard naming convention for git tags?
问题描述
我见过很多使用 v1.2.3
的项目作为git中标签的命名约定。我也看到一些使用 1.2.3
。是否有官方认可的风格,或者有没有什么好的理由可以使用?
< blockquote>
标记规范(SemVerTag)
如果您使用版本控制系统(Git,Mercurial,
SVN等)来存储您的代码。使用此系统允许自动化工具检查您的
包并确定SemVer合规性和已发布的版本。
$ b
- 标记版本控制系统,版本的标签必须是
vX.YZ,例如v3.1.0。
I've seen a lot of projects using v1.2.3
as the naming convention for tags in git. I've also seen some use 1.2.3
. Is there an officially endorsed style, or are there any good arguments for using either?
There is Semantic Versioning, by Tom Preston-Werner of github fame:
Tagging Specification (SemVerTag)
This sub-specification SHOULD be used if you use a version control system (Git, Mercurial, SVN, etc) to store your code. Using this system allows automated tools to inspect your package and determine SemVer compliance and released versions.
- When tagging releases in a version control system, the tag for a version MUST be "vX.Y.Z" e.g. "v3.1.0".
这篇关于git标签有一个标准的命名约定吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!