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

后端 未结 3 523
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:40

    https://semver.org/#is-v123-a-semantic-version

    Is “v1.2.3” a semantic version? No, “v1.2.3” is not a semantic version. However, prefixing a semantic version with a “v” is a common way (in English) to indicate it is a version number. Abbreviating “version” as “v” is often seen with version control. Example: git tag v1.2.3 -m "Release version 1.2.3", in which case “v1.2.3” is a tag name and the semantic version is “1.2.3”.

提交回复
热议问题