How can I fix a conflict in a pull request?

Gifted Leather April 24, 2019

Suppose I have two branches, master and release/2.0, and I want to merge the release branch into master.

I do a pull request to merge release/2.0 to master, but, after the pull request has been done, I discover that there is a conflict (for example, application's version within the main POM).

How can I solve the conflict? Is the previous one (direct pull request in BitBucket) the right approach, or I have to perform the merge in my local environment and then make the pull request? In this case, which are the steps to perform?

Thanks in advance.

3 answers

1 accepted

1 vote
Answer accepted
Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2019

Hi @Gifted Leather,

Any pull request that has conflicts will display a header like this:

ConflictHeader.JPG

If you click on the more information link you will get these detailed instructions on how to resolve the conflict:

ConflictResolution.JPG

I hope that helps!

-James

3 votes
Gabriela Costa
Contributor
June 15, 2020

@Gifted Leather my team developed this plugin: Power Editor for Bitbucket, which allows you to resolve conflicts on a pull request in the UI. You won't need to go through any of the git commands anymore (even though we highly recommend you learn them, they can be quite useful). Check it out and let me know if you have any questions.

It also supports:

  • Adding, renaming and deleting files
  • Editor extensions like preview, view diff and tab and space controls.
  • Editing functionality in pull requests to quickly fix typos in files.
  • Full support for hooks.
0 votes
Sandesh Shetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2019

@Gifted Leather 

When merge conflicts are there ,it will show - which lines are conflicting. You have to resolve the merge conflicts before merging.

For more info refer this https://confluence.atlassian.com/bitbucket/resolve-merge-conflicts-704414003.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events