How to do 'git flow feature publish' from SourceTree?

Hi all,

I'm really pleased to see that SourceTree has Git Flow support, because otherwise Git Flow is painful to configure/use on Windows. However, I don't see how to publish a feature back to origin (appologies if I'm being loose wth terminology here) so that other members of my team can access it.

I learned Git Flow from this guide which describes the following command:

git flow feature publish

If you want to share this feature branch with some of you team mates so you can do some collaborative development then you would use to this sub-command to publish this feature up to your centralized Repository for your team to grab. ... The format for this command is:

git flow feature publish [featureName]

How do I do this through SourceTree? The 'Git Flow' button offers me the option to 'Finish Feature' (and a few others) but no 'Publish Feaure'? Am I simply supposed to push? I was concerned it might be more complex than that and don't want to get my repository into a bad state.

1 answer

1 accepted

I can't see any difference between "flow feature publish" and "push".

Thanks, I tried just pushing and it seemed to work... at least I now see the feature in Bitbucket. I'll try picking it up from another machine tomorrow.

Ok, it seems to work ok. Guess I was just overthinking this issue.

Hello David,

Thank for the tips, but...

Then .. finally what command do we have to execute? .. Which one is correct?
git flow feature publish MYFEATURE or git push origin feature / MYFEATURE

Hi, I'm sorry but I'm not using 'git flow' anymore so I don't really remember what I did! It was with an old version of SourceTree anyway.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Meg Holbrook
Posted yesterday in Off-topic

Miscellaneous Monday - Throwback Edition

It's Monday morning here is sunny California! (86 degrees in April, what is happening right now??) Time for another Miscellaneous Monday! I was having a random conversation with my nine-year-old thi...

2,259 views 29 2
Join discussion

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