Is there a command to undo git flow init?

payliu picture payliu · Aug 28, 2013 · Viewed 43.4k times · Source

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.

Answer

danidemi picture danidemi · Apr 27, 2017

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