我在 Windows 上使用 Git 流。当我通过以下方式初始化我的 repo 时
git flow init -d
我得到以下输出
Which branch should be used for bringing forth production releases?
- develop
- master
Branch name for production releases: [master]
Which branch should be used for integration of the "next release"?
- develop
Branch name for "next release" development: [develop]
How to name your supporting branch prefixes?
Feature branches? []
Bugfix branches? []
Release branches? []
Hotfix branches? []
Support branches? []
Version tag prefix? []
可以看出,默认前缀是空的。谁能告诉我这些前缀是在哪个配置文件中设置的?
问题是我正在使用 PowerShell 脚本来克隆多个存储库并通过
git flow init -d
初始化存储库,所以我需要默认值。谢谢
最佳答案
这可能是错误或自愿更改:至少有人发布了 github issue对这个。
同时,您可以使用:
git flow init -d --feature feature/ --bugfix bugfix/ --release release/ --hotfix hotfix/ --support support/ -t ''
正如@creativeDev 所指出的,如果您已经执行了“git flow init”,则可以通过在 -d 之前添加 -f 来强制重新初始化:git flow init -f -d --feature feature/ --bugfix bugfix/ --release release/ --hotfix hotfix/ --support support/ -t ''
2020-08-25 更新:this issue要求作者 nvie 将存储库 (?) 标记为已弃用,并将自制软件中的 git-flow 指向 git-flow-avh反而
关于git flow init -d 默认建议为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55263145/