我要开始使用Gitflow了。我注意到,在默认情况下,分支以正斜杠结尾。
也就是说。
修补程序/发行版/
等。
当git使用正斜杠作为文件夹分隔符时,正斜杠是否会引起任何问题。
它会不会对git中的正斜杠的部署造成任何问题?
我们能用另一个前缀如连字符吗?
这两种方法的优缺点是什么。
提前感谢
发布于 2017-04-23 09:51:30
我遇到的唯一问题是,如果您有master分支,您就不能创建一个名为master/foo/bar的分支,因为它以一个已经存在的分支名称开始。
我使用fix/feature|path/{issue-number}/description/{destination}模式
例子:
再一次
诸若此类
发布于 2020-08-22 20:56:29
目前,您可以在使用git flow init初始化gitflow时设置不同的后缀,如下所示:
❯ git flow init
No branches exist yet. Base branches must be created now.
Branch name for production releases: [master]
Branch name for "next release" development: [develop]
How to name your supporting branch prefixes?
Feature branches? [feature/] feature-
Release branches? [release/] release-
Hotfix branches? [hotfix/] hotfix-
Support branches? [support/] support-
Version tag prefix? [] v如您所见,括号中是默认值(正斜杠作为后缀),但可以用yourbranchname- (最后的破折号)覆盖它。
https://stackoverflow.com/questions/43568533
复制相似问题