Git Flow "best practice" with Bitbucket

Our team is attempting to implement Git Flow into our routine and we are having a bit of an issue with how best to do this.

We have one "master" repository that we have all cloned from (using Bitbucket). This one we call "upstream" and our own clone we call "origin". We also each create our own local clones from our own origin repository to do our work in.

Currently, once we have completed a feature we push that branch to our origin and the do a PR to upstream from origin/feature -> upstream/master so that the merge into master happens when the PR is accepted. This has worked well since nobody is working directly on the master branch (in theory).

So, my new test setup with Git Flow, I'm using SourceTree locally and when I complete a feature it merges that feature into my local develop branch which is then pushed up to my origin. I then go and create the PR from origin/develop to master/develop.

This is now where I come unstuck. I used to be able to just pull from upstream into my master and all the changes including my own and others would come in nice and cleanly without and dramas. Now, when I pull into develop, I end up with extra merge commits locally in my develop branch which I then have to push when I do my next feature.

I guess what I object to is the extra merge commits I'm getting now where previously there was very few of these required. Is this just something we have to live with using this model or is there a neater way to do it?

Thanks

2 answers

Has this been answered?

Not really, in practice it isn't really an issue. Everything seems to work quite happily but we do have a lot more merge commits than previously which just triggers my OCD a bit :-)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

109 views 6 3
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