Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I recover if I made a mistake in git flow init?

Tags:

I've run git init and made a mistake selecting the first branch. Now I want to rerun it to change the settings, but it never asks the first question again.

Which branch should be used for bringing forth production releases?     - develop  Branch name for production releases: [] develop  Which branch should be used for integration of the "next release"?  Branch name for "next release" development: [develop] ^C Lymnaea:boxes (develop) $ git flow init  Which branch should be used for integration of the "next release"?  Branch name for "next release" development: [develop] Production and integration branches should differ. 

How can I undo the first init run so that I can set the branch to master?

like image 347
iwein Avatar asked May 16 '15 08:05

iwein


1 Answers

In the end I found the answer in this question. It's not entirely a duplicate, so I'll leave this here for the next person that cannot find the right keywords.

git flow init -f # will force re-initialization 

If you want to do it manually, you can use git config -e.

like image 120
iwein Avatar answered Sep 22 '22 00:09

iwein