How to configure Merge Strategies on Bitbucket Cloud?

2.2k views Asked by At

I want to configure BitBucket Cloud so that Pull Requests won't create merge commits but rather only do fast forward merges.

However, I can't seem to find a way to configure this. For Bitbucket Server there seems to be an easy way to do this: http://blogs.atlassian.com/2016/08/new-features-bitbucket-4-9/

Any ideas on how to achieve the same thing with Bitbucket Cloud?

3

There are 3 answers

0
Rodrigo On

According to this thread this feature (merge strategy selection) was implemented only for Bitbucket Server product:

https://bitbucket.org/site/master/issues/8995/provide-the-option-to-use-git-merge-squash

Some people asked about Bitbucket Cloud but no staff member replied back :(

1
John Camerin On

Capability exists in BitBucket Cloud on the repository's merge strategy in settings.

enter image description here

Which has this description:

Select Fast forward if the destination branch has no new commits since you created the source branch. Fast-forward merges move the source branch tip up to the destination branch tip, combining commit histories. Because this strategy moves the source branch's commits to the destination branch, you'll still see all commits on the Commits page.

0
Justin Kent On

There's a feature request thread going that would allow fast-forward commits from the Pull Request. I know this is not the full answer to your question, but it's part of it. If you'd like to see this feature implemented, vote on the issue. Provide the option to use "git merge --ff-only" for pull requests