Is there a way to use custom git-flow installation in SourceTree?

Ilya Bogdanovich August 1, 2012

In my team we use custom build of git-flow, which has some extra features. It would be extreamly helpful for us to tell SourceTree alternative git-flow installation, like it could be done with git.

1 answer

1 vote
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2012

The reason there isn't a 'system git-flow' setting is that I had to make a couple of changes to git-flow to make it work well from a GUI. I submitted pull requests for those change and you can find them here:

https://github.com/nvie/gitflow/pull/222
https://github.com/nvie/gitflow/pull/223

So, any custom version of git-flow would have to have those 2 pull requests applied. Provided you do that, it's possible to use your modified git-flow in SourceTree by manually replacing (or symbolic linking) the directory "SourceTree.app/Contents/Resources/git_local/gitflow/".

I was hoping no-one would need to do this to be honest, but you're now the second person to ask. What I may do for the next version is expose a way to redirect this but with strong warnings to check out the pull requests above.

stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2012

Oh, actually I just noticed that nvie has pulled them both into the standard git-flow now, that's awesome and makes this much easier to support in future. I wonder why I didn't get an email about that.

[edit]Still, the changes are only in the develop branch right now and not in the main release so it's still important to check them.

Ilya Bogdanovich August 2, 2012

Thanks, this worked for me. One more question: in our custom git-flow, we have an extra stage - for code review. So full cycle looks like start-publish-review-finish. Is there any way to add an extra step to SourceTree UI?

stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2012

You can add any commands you like to SourceTree using Custom Actions, which has its own tab in the Preferences window. It won't be as pretty of course, but you can hook in almost anything you need there.

kendallb April 19, 2014

Is it possible to do this for Windows? I can't seem to find where the gitflow stuff is stored.

The only change I would like is for the ability to automatically create a mirror branch on the remote repo. I work from both my work computer and home computer but they are not the same computer (work is a Mac Pro, home is a MacBook pro :) ). So to access stuff from home at work (or vice versa), I have to push it up so it adds another manual step that I sometimes forget to do ...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events