How to Resolve GitLab Merge Conflicts

Share
Workaround available Self-managed or GitLab.com Updated November 13, 2026Based on 3 user reportsHow we research

Quick answer

GitLab can resolve simple text conflicts in the browser; anything bigger needs a local rebase or merge of the target branch into your branch.

Most likely fix: Resolve in the GitLab UI

How to fix it

Try these in order — the most common fix is first.

  1. 1. Resolve in the GitLab UI

    1. Open the merge request and click Resolve conflicts.
    2. Pick "Use ours" or "Use theirs" per section, or switch to Edit inline.
    3. Add a commit message and click Commit to source branch.
    Did this fix it?
  2. 2. Resolve locally with a merge

    1. git fetch origin && git switch my-branch.
    2. git merge origin/main, edit the files with conflict markers (<<<<<<<, =======, >>>>>>>).
    3. git add the files, git commit, git push.
    Did this fix it?
  3. 3. Resolve locally with a rebase

    1. git rebase origin/main.
    2. Fix each conflict, git add, git rebase --continue.
    3. git push --force-with-lease (only on your own branch).
    Did this fix it?
  4. 4. When Resolve conflicts is missing

    1. Binary files, renamed files and very large diffs cannot be resolved in the UI; use the local steps.
    2. Comment /rebase in the merge request to try a server-side rebase.
    Did this fix it?

Symptoms

Merge request shows "There are merge conflicts" and the Merge button is disabled; "Resolve conflicts" may be missing.

Why it happens

  • Both branches changed the same lines
  • File renamed or deleted on one side
  • Binary or very large files, which the web editor cannot resolve
  • Branch is far behind the target branch

This guide also covers

  • gitlab merge conflicts
  • gitlab resolve conflicts button missing
  • gitlab there are merge conflicts
  • gitlab cannot merge conflicts

Still not working?

If GitLab keeps failing, you're not alone. See every GitLab problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other GitLab errors

All 11 GitLab errors and fixes →