是否有撤消 git 流 init 的命令?

git flow init之后,如何去除 git 流模型?
如何从 .git/config文件中删除所有相关配置?

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

如何从 .git/config文件中删除以下内容?

[gitflow "branch"]
master = master
develop = develop
[gitflow "prefix"]
feature = feature/
release = release/
hotfix = hotfix/
support = support/
versiontag =
55264 次浏览

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.

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