Martin Schulze
Martin Schulze

Reputation: 2171

How to configure Merge Strategies on Bitbucket Cloud?

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?

Upvotes: 1

Views: 2455

Answers (3)

John Camerin
John Camerin

Reputation: 722

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.

Upvotes: 2

Justin Kent
Justin Kent

Reputation: 243

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

Upvotes: 2

Rodrigo
Rodrigo

Reputation: 669

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 :(

Upvotes: 1

Related Questions