OliverRadini
OliverRadini

Reputation: 6466

Fast forward merge on either a branch or merge request specific level

I'm aware that in gitlab that it's possible to configure a project to always use fast-forward merges.

I'm looking to be able to either configure particular branches to always use fast-forward merges, or to choose to do a fast forward merge for a given branch.

It's possible to do the fast forward merge outside of gitlab, but then the branch would need to be unprotected in order to allow pushes of those changes, which wouldn't be acceptable.

Upvotes: 0

Views: 468

Answers (1)

Ayan
Ayan

Reputation: 25

To configure any particular branch to use only fast-forward only , you can use git config command

example :- git config --add mybranch.master.mergeoptions --ff-only

This will allow merge to master from this branch only if its a fast-forward merge

Let me if this answers your query.

Upvotes: 0

Related Questions