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

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

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.

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.

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?

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.

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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

241 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot