Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a command to undo git flow init?

Tags:

git-flow

After git flow init, how to remove the git flow model?
How do I remove all related config from the .git/config file?

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

How to remove below content from the .git/config file?

[gitflow "branch"]     master = master     develop = develop [gitflow "prefix"]     feature = feature/     release = release/     hotfix = hotfix/     support = support/     versiontag =  
like image 923
payliu Avatar asked Aug 28 '13 06:08

payliu


People also ask

How do I undo git init?

While there is no undo git init command, you can undo its effects by removing the . git/ folder from a project. You should only do this if you are confident in erasing the history of your repository that you have on your local machine.

Which branch should be used for bringing forth production releases git flow?

Release branches When creating a release branch, it uses the current state of 'develop' branch as its base. You can make any further small commits to make it production ready, then you can run git flow release finish 'v0. 1' to finish the release.

What does git flow init do?

Git-flow is a wrapper around Git. The git flow init command is an extension of the default git init command and doesn't change anything in your repository other than creating branches for you.


1 Answers

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 
like image 138
danidemi Avatar answered Oct 24 '22 10:10

danidemi