我运行了 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/