Git flow release branches and tags - with or without “v” prefix

后端 未结 3 488
Happy的楠姐
Happy的楠姐 2021-01-29 23:13

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

Branches: relea

3条回答
  •  孤独总比滥情好
    2021-01-29 23:41

    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.

    Edit note: Semver no longer specifies usage of the "v" prefix, but does not that it is "a common way to indicate a version number". In fact, Semver explicitly said that "v1.2.3" (for example) "is not a semantic version".

    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.


    See also: Is there a standard naming convention for git tags?

提交回复
热议问题