GitLab: Merge blocked: fast-forward merge is not possible. To merge this request, first rebase locally.

If you are working with Merge Requests in GitLab, you may see this message quite often. So what can be done to fix this and merge the branch?

So what is wrong?

If you go to any merge request displaying this message, you will see that the branch does not have all changes from the main branch. Also, GitLab cannot rebase this as…




DevOps can help you deliver more business value. It is not always easy but certainly possible.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Valentin Despa

Valentin Despa

Software developer and online instructor. Imprint:

More from Medium

How to Configure your own GitLab Runner with a Docker Executor on AWS EC2

Using your Local API Mediation Layer with REST clients and Zowe CLI

Migrate a database in a CI/CD pipeline with Flyway

3-tier / N-tier architecture on oracle cloud — (OCI)

Oracle N-tier applications implementation with high availability