How to reset the git-flow configuration in SourceTree?

GitGit FlowAtlassian Sourcetree

Git Problem Overview


In my team we are migrating from svn to git and we have agreed upon embracing the git-flow flow. I've been playing around a while with SourceTree and the Git-Flow extension. Now, we have decided that the develop branch will be called development/current instead, but I do not find in the SourceTree UI where to change the Git-Flow configuration.

Is it possible, once initialized, to change the Git-Flow configuration for a given repository?

Git Solutions


Solution 1 - Git

No, it is not possible (at least not at SourceTree 1.4.1.0).

It is possible however to do it manually by editing the file /.git/config in your git repository.

The Git-Flow extension adds it s configuration in the following two sections, which can be freely edited.

[gitflow "branch"]
	master = master
	develop = development/current
[gitflow "prefix"]
	feature = feature/
	release = release/
	hotfix = hotfix/
	versiontag = release/
	support = support/

Resource: http://www.crisi.ch/change-git-flow-settings-in-sourcetree/

Solution 2 - Git

In SourceTree 2.x it is easy to edit your GitFlow.

  1. Click Settings if you're using Mac (Repository - Repository Settings in Windows)
  2. Select Advanced Tab
  3. Click Edit Config File ...

Screenshot

Solution 3 - Git

You have to use git flow init -f

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondiegomtassisView Question on Stackoverflow
Solution 1 - GitdiegomtassisView Answer on Stackoverflow
Solution 2 - GitcocoView Answer on Stackoverflow
Solution 3 - GitCrsCaballeroView Answer on Stackoverflow