git-flow - 如何恢复 git flow init 中的错误?

标签 git-flow

我运行了 git init 并在选择第一个分支时犯了一个错误。现在我想重新运行它来更改设置,但它再也不会问第一个问题。

Which branch should be used for bringing forth production releases? 
   - develop

Branch name for production releases: [] develop

Which branch should be used for integration of the "next release"?

Branch name for "next release" development: [develop] ^C
Lymnaea:boxes (develop) $ git flow init

Which branch should be used for integration of the "next release"?

Branch name for "next release" development: [develop]
Production and integration branches should differ.

如何撤消第一次 init 运行,以便将分支设置为 master?

最佳答案

最后我在this question中找到了答案。它并不完全重复,所以我将把它留在这里供下一个找不到正确关键字的人使用。

git flow init -f # will force re-initialization

如果你想手动执行,可以使用git config -e

关于git-flow - 如何恢复 git flow init 中的错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30273320/

相关文章:

linux - 我正在处理哪些文件?

Git Revert 删除了另一位开发人员的工作。为什么?

git - 如何使用集线器从命令行 merge PR?

使用 gitolite 的 git 默认远程分支

git - 修补程序分支的单独环境?

git flow 发布选定的功能

Git功能分支审查: Rewrite or add commit?

eclipse - Windows/Linux 上是否有任何 IDE/GUI 支持 git-flow?

git - 源树 : How to create multiple hotfix branches with Git Flow

Git-flow 和特定于客户端的功能