git flow init -d 默认建议为空

Moe*_*ald 4 git git-flow

我在 Windows 上使用 Git flow。当我通过以下方式初始化我的存储库时

git flow init -d 
Run Code Online (Sandbox Code Playgroud)

我得到以下输出

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? []
Run Code Online (Sandbox Code Playgroud)

可以看出,默认前缀为空。谁能告诉我这些前缀是在哪个配置文件中设置的?

问题是我正在使用 PowerShell 脚本克隆多个存储库并通过 初始化存储库git flow init -d,因此我需要默认值。

谢谢

ber*_*lus 9

这可能是一个错误,也可能是一个自愿更改:至少有人发布了一个关于此问题的github 问题

在此期间,您可以使用:

git flow init -d --feature feature/  --bugfix bugfix/ --release release/ --hotfix hotfix/ --support support/ -t ''
Run Code Online (Sandbox Code Playgroud)

正如 @creativeDev 所指出的,如果您已经执行了“git flow init”,则可以通过在 -d 之前添加 -f 来强制重新初始化:

git flow init -f -d --feature feature/  --bugfix bugfix/ --release release/ --hotfix hotfix/ --support support/ -t ''
Run Code Online (Sandbox Code Playgroud)

更新 2020-08-25此问题要求作者 nvie 将存储库(?)标记为已弃用,并使自制程序中的 git-flow 指向git -flow-avh