Git流释放分支和标签-带有或不带有"v"标记的字首 [英] Git flow release branches and tags - with or without "v" prefix

查看:105
本文介绍了Git流释放分支和标签-带有或不带有"v"标记的字首的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在各种与git flow相关的网站上看到了多个相互矛盾的定义.是否有官方建议或真相的单一来源?

I have seen multiple contradicting definitions on various git flow related websites. Is there an official recommendation or single source of truth?

分支:release-1.2.3release-v1.2.3

标签:1.2.3v1.2.3

推荐答案

好吧,基本上这是一个优先选择的问题,但是我更喜欢带有v的版本,例如

Well, basically it is a matter of preference, but I prefer the version with the v, as Semver does it that way and I try to follow that specification as close as possible to get a sane versioning.

这也使筛选这些标签变得更加容易,因为您可以按v然后按 TAB 键进行自动补全:这将列出所有标签(可能包括几个分支),而标签可以以几个数字开头.

It also makes filtering for those Tags easier, as you can press v and then the TAB-key for autocompletion: This will list all the tags (and maybe a few branches), whereas there are several digits a tag could start with.

另请参见:> git是否有标准命名约定标签?

这篇关于Git流释放分支和标签-带有或不带有"v"标记的字首的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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