git标签有一个标准的命名约定吗? [英] Is there a standard naming convention for git tags?

查看:106
本文介绍了git标签有一个标准的命名约定吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过很多使用 v1.2.3 的项目作为git中标签的命名约定。我也看到一些使用 1.2.3 。是否有官方认可的风格,或者有没有什么好的理由可以使用?

href =http://semver.org/ =noreferrer>语义版本管理 ,由github的Tom Preston-Werner声誉:



< blockquote>

标记规范(SemVerTag)



如果您使用版本控制系统(Git,Mercurial,
SVN等)来存储您的代码。使用此系统允许自动化工具检查您的
包并确定SemVer合规性和已发布的版本。


$ b


  1. 标记版本控制系统,版本的标签必须是
    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.

  1. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆