Is there a command to undo git flow init?

你离开我真会死。 提交于 2019-12-03 03:27:36

问题


After git flow init, how to remove git flow model?
Even, I removed related config from .git/config file.

$ git flow init
# force reset
$ git flow init -f

Already remove below content from .git/config file.

[gitflow "branch"]
    master = master
    develop = develop
[gitflow "prefix"]
    feature = feature/
    release = release/
    hotfix = hotfix/
    support = support/
    versiontag = 

Thanks.


回答1:


You can do what @Peter said from the command line too!

Those commands remove all the sections of the git config file related to gitflow.

git config --remove-section "gitflow.path"
git config --remove-section "gitflow.prefix"
git config --remove-section "gitflow.branch"

Then you can re-init gitflow as usual.

git flow init



回答2:


If you removed those sections from your config any reference to git-flow is gone.

There isn't really a need to remove anything though, the git-flow model is just that, it's a model. You can always use standard git commands.

What git-flow adds to your config, only git-flow software will use, not the git itself.



来源:https://stackoverflow.com/questions/18480923/is-there-a-command-to-undo-git-flow-init

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!