GitLab: merge conflicts that cannot be resolved in GitLab
When a merge request has conflicts GitLab's own editor cannot handle, the page says The merge conflicts for this merge request cannot be resolved through GitLab. Please try to resolve them locally. A merge request that conflicts at all has detailed_merge_status conflict, and the merge page says Merge conflicts must be resolved. (GitLab docs: merge conflicts, checked November 19, 2026).
What the page can resolve
GitLab resolves a conflict in its own editor only if every conflicting file:
- is a non-binary text file;
- is less than 200 KB with the conflict markers added;
- uses a UTF-8 compatible encoding;
- does not already contain conflict markers;
- exists under the same path in both branches (a file renamed or deleted on one side fails this).
If one file fails, the whole merge request is resolved locally. Where the page can resolve it, it offers interactive mode (pick one side for each conflict) or the inline editor (edit by hand).
To see that conflicts are what block a merge request: Merge Request (MR) Review Inbox for GitLab, a plugin for JetBrains IDEs, lists the merge checks from detailed_merge_status with the blocking ones first.
Resolving locally
- Update the source branch with the target: rebase on it or merge it in (
git fetch, thengit rebase origin/mainorgit merge origin/main; use your own target branch name). - Git marks each conflict with
<<<<<<< HEAD(start, then your changes),=======(end of your changes, then the target branch's latest) and>>>>>>>(end). Delete the version you do not want and all three marker lines. - Finish the rebase or commit the merge, then push the source branch (after a rebase, a force push). GitLab sees the new commits and checks the merge request again.
Stuck on "Checking ability to merge automatically"
If the merge request seems not to notice that the conflicts are gone, rebase it with the /rebase quick action or Rebase source branch in the merge widget. The rebase needs no conflicts, the Developer role in the source project and, for a fork, permission from the upstream project's members to commit to it. For projects that merge semi-linearly or by fast-forward, automatic rebase before merge can do the rebase for you. See also why GitLab refuses a rebase.
GitLab merge requests in IntelliJ IDEA
Merge Request (MR) Review Inbox for GitLab, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a merge request's merge checks before you merge: approvals, requested changes, unresolved threads, the pipeline, conflicts, and GitLab's other reasons from detailed_merge_status, with the ones that block the merge first, and the head pipeline with a link. Conflicts are one of those checks; it can also rebase from the IDE (Pro). Reading is free; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.
More: GitLab rebase refused or failed (403, 409) · GitLab merge refused (405, 409, 422) · GitLab squash refused or failed · GitLab merge blocked by locked files (locked_paths, locked_lfs_files)