我跑了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.
Run Code Online (Sandbox Code Playgroud)
如何撤消第一个init运行,以便我可以将分支设置为master?
iwe*_*ein 21
最后我在这个问题中找到了答案.这不完全是重复的,所以我会把这个留给找不到合适关键词的下一个人.
git flow init -f # will force re-initialization
Run Code Online (Sandbox Code Playgroud)
如果你想手动完成,你可以使用git config -e.