问题描述
我在各种与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.3
或release-v1.2.3
标签:1.2.3
或v1.2.3
推荐答案
好吧,基本上这是一个优先选择的问题,但是我更喜欢带有v
的版本,例如 Semver 就是这样做的,我尝试尽可能遵循该规范以获得合理的版本控制.
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
然后按键进行自动补全:这将列出所有标签(可能包括几个分支),而标签可以以几个数字开头.
It also makes filtering for those Tags easier, as you can press v
and then the -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"标记的字首的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!