如何在 SourceTree 中重置 git-flow 配置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24754286/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to reset the git-flow configuration in SourceTree?
提问by diegomtassis
In my team we are migrating from svn to git and we have agreed upon embracing the git-flow flow. I've been playing around a while with SourceTree and the Git-Flow extension. Now, we have decided that the develop branch will be called development/current instead, but I do not find in the SourceTree UI where to change the Git-Flow configuration.
在我的团队中,我们正在从 svn 迁移到 git,并且我们已经同意采用 git-flow 流程。我一直在玩 SourceTree 和 Git-Flow 扩展。现在,我们决定将 develop 分支称为 development/current ,但我在 SourceTree UI 中没有找到更改 Git-Flow 配置的位置。
Is it possible, once initialized, to change the Git-Flow configuration for a given repository?
一旦初始化,是否可以更改给定存储库的 Git-Flow 配置?
回答by diegomtassis
No, it is not possible (at least not at SourceTree 1.4.1.0).
不,这是不可能的(至少在 SourceTree 1.4.1.0 中不可能)。
It is possible however to do it manually by editing the file /.git/config
in your git repository.
但是,可以通过编辑/.git/config
git 存储库中的文件来手动执行此操作。
The Git-Flow extension adds it s configuration in the following two sections, which can be freely edited.
Git-Flow 扩展在以下两部分添加了它的配置,可以自由编辑。
[gitflow "branch"]
master = master
develop = development/current
[gitflow "prefix"]
feature = feature/
release = release/
hotfix = hotfix/
versiontag = release/
support = support/
Resource: http://www.crisi.ch/change-git-flow-settings-in-sourcetree/
资源:http: //www.crisi.ch/change-git-flow-settings-in-sourcetree/
回答by coco
回答by CrsCaballero
You have to use git flow init -f
你必须使用 git flow init -f