Stash issues with GitFlow / branch merging issues

Hi, 

I'm using GitFlow with Stash, and I'm having problems. To reproduce:

1) Create a new repository. It will have one branch - master. Make initial commit to master.

2) Create develop branch from master by selecting "Create new branch from here". Make two commits to develop branch.

3) Create release branch from develop. Make one commit to release branch.

4) Create pull request release -> master. Merge.

At this point, branch diagram looks like this:

gitflow1.gif

This is the first problem - shouldn't the lines be connected at the top: release/1 -> master?

Then continuing:

5) Create pull request release -> develop. Merge.

6) Delete release branch.

7) Create hotfix branch from master. Make a commit to hotfix branch.

At this point , branch diagram looks like this:

gitflow2.gifNow second problem: if I compare hotfix branch to develop, diff shows not only the additional changes since commit 9bf8f5ff8f9, but everything since the initial commit when the lines in the diagram had a shared point f5df930aef2.

Third and the most severe problem: if I create a pull request hotfix -> develop, I get conflicts for every change that was made in the hotfix branch.

I presume this is not how Stash is supposed to behave? Can anyone tell me how to solve this?

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

712 views 0 4
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