我该如何在git flow init中恢复错误?

21

我已经运行了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.

我如何撤消第一次的初始化运行,以便我可以将分支设置为主分支(master)?

1个回答

31

最终我在这个问题中找到了答案。虽然不完全相同,但我会将它留在这里,为了下一个无法找到正确关键词的人。

git flow init -f # will force re-initialization

如果您想手动完成,可以使用git config -e


9
您还可以在您的仓库中编辑文件.git/config,在[gitflow "prefix"]部分下找到这些定义。 - Hugo Ferreira

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接