我已经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?
答案 0 :(得分:17)
最后我在this question找到答案。它并不完全重复,因此我将此处留给找不到合适关键字的下一个人。
git flow init -f # will force re-initialization
如果您想手动执行此操作,可以使用git config -e
。