Kulasangar
Kulasangar

Reputation: 9454

How can I do Fast-Forward Merge only for Certain Branches in Gitlab?

I have a gitlab project and it has 3 branches such as dev, acceptance and production.

Let's say I want to merge some feature branch into dev -> then this can be a normal merge

But if there's going to be a merge from dev -> acceptance or acceptance -> production then it has to be a fast forward merge.

How can I have these rules in Gitlab? (I checked from the Settings > Merge Requests section, where it only sets fast forward merge option globally)

I've tried looking up in the internet if there's a way to do this, but unfortunately I weren't able to find anything.

Any help could be really appreciated.

Upvotes: 0

Views: 10

Answers (0)

Related Questions