问题 如果我在git flow init中犯了错误怎么能恢复?


我跑了 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?


5203
2018-05-16 08:09


起源



答案:


最后我找到了答案 这个问题。它并不完全是重复的,所以我会把这个留给找不到合适关键词的下一个人。

git flow init -f # will force re-initialization

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


15
2018-05-16 11:49



您也可以编辑该文件 .git/config 在您的仓库内,您将在那里定义那些定义 [gitflow "prefix"] 部分。 - Hugo Ferreira


答案:


最后我找到了答案 这个问题。它并不完全是重复的,所以我会把这个留给找不到合适关键词的下一个人。

git flow init -f # will force re-initialization

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


15
2018-05-16 11:49



您也可以编辑该文件 .git/config 在您的仓库内,您将在那里定义那些定义 [gitflow "prefix"] 部分。 - Hugo Ferreira