Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset the git-flow configuration in SourceTree?

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?

like image 301
diegomtassis Avatar asked Jul 15 '14 09:07

diegomtassis


People also ask

What is git flow in Sourcetree?

Git-flow is a great way to automate your handling of branch-based development in Git, and SourceTree now provides a simple and clear way to use it with an easy-to-use and intuitive GUI. Big thanks to Vincent Driessen for coming up with git-flow in the first place! Try the Git-flow workflow yourself with Sourcetree 1.5!

What is Gitflow workflow?

The Gitflow Workflow defines a strict branching model designed around the project release. This workflow doesn't add any new concepts or commands beyond what's required for the Feature Branch Workflow. Instead, it assigns very specific roles to different branches and defines how and when they should interact.

What is hotfix in git?

Hotfix branches Maintenance or “hotfix” branches are used to quickly patch production releases. Hotfix branches are a lot like release branches and feature branches except they're based on main instead of develop . This is the only branch that should fork directly off of main .

What does git flow release finish do?

git flow release finish <name> One your release has exited the final quality gate and is ready to be released into production - you can "finish" the branch. Note from the screenshot that you should provide a message.


2 Answers

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/

like image 141
diegomtassis Avatar answered Sep 20 '22 21:09

diegomtassis


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

like image 22
coco Avatar answered Sep 21 '22 21:09

coco