git flow init -d 默认建议为空

标签 git git-flow

我在 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/

相关文章:

Git 和在多个分支上工作

git - 保持功能分支最新

git - SourceTree/Git 中是否有一个选项可以在推送之前查看其他人的代码?

git - 在 Git 中跟踪待办事项和问题

git - 列出 Git 存储库中特定用户更改的所有文件

python - 另一个 pymacs 助手在 30 秒内没有启动(但有更多调试)

git - 两个 Git 分支名称指向同一个分支?

git - 保护 Visual Studio Team Services 中的 Git 分支,就像在 GitHub 中一样

git - master分支和release分支是做什么用的?

git - 不知何故,我的 git develop 分支被 merge 到了我的 master 分支中