Lesstep
Bitbucket Cloud and Data Center · Pull requests · October 26, 2026

Bitbucket pull request merge conflicts

When the source branch and the destination branch of a pull request change the same lines differently, or one changes a file the other deletes, Bitbucket cannot merge the pull request until the conflict is resolved, and Bitbucket's web page has no editor for it: the resolution is made in a clone of the repository and pushed. Below is what Bitbucket shows and what to do, from Atlassian's Resolve merge conflicts (Cloud), Merge a pull request (Data Center 10.5) and the REST references.

What Bitbucket shows

Resolving them on your machine

Atlassian's steps for Bitbucket Cloud, with the source branch feature and the destination main in the same repository:

git checkout feature
git pull origin main
# Git merges main into feature and stops at the conflicts
# edit each conflicting file: remove the markers, keep the right content
git add <file>
git commit -m "Merge main into feature"
git push origin feature

From the REST API

Merge conflicts in IntelliJ IDEA

Pull Request Inbox for Bitbucket, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the pull requests that wait for your review in an IDE tool window, from Bitbucket Cloud and, in beta, from Bitbucket Data Center 8.9 or later. From version 1.0.42, a pull request with merge conflicts says so at the top of its Overview, with Resolve in the IDE: it fetches, checks out the source branch and merges the destination branch into it, so the conflicting files open in the IDE's merge dialog (Accept Yours, Accept Theirs, or Merge… side by side). From 1.0.43 the Overview also lists the files in conflict and what clashes in each, read from the conflicts endpoint above on Cloud and from the conflict marks of the pull request's changes on Data Center. Commit the merge and push the branch, and the pull request can be merged. Resolving conflicts is free, as are the review inbox, diffs, discussions and merge checks; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

Bitbucket and Atlassian are trademarks of Atlassian; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by Atlassian or JetBrains.

More: Bitbucket merge checks · Bitbucket merge strategies · Bitbucket auto-merge · Bitbucket pull request plugins for IntelliJ IDEA, compared · 日本語