Rename local GIT branch breaks Git Flow in SourceTree -


while using sourcetree renamed 2 main local branches (master , develop).
however, when click on git flow icon start new feature, tells me repository needs initialized (even though has been been initialized).
additionally, repository -> git flow -> initialize repository menu item greyed out.

i tried putting names of branches , git flow works again!

so, how rename branches , keep git flow working?

shut sourcetree, , edit file .git/config (within repository) updating [gitflow "branch"] section. .git directory hidden within file explorer.

the default this:

[gitflow "branch"] master = master develop = develop 

and should change match new branch names, i.e.:

[gitflow "branch"] master = yournewmasterbranchname develop = yournewdevelopbranchname 

then restart sourcetree


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -