How do I resolve a merge conflict with hgtags?

I seem to have a merge conflict with my hgtags file. Not sure how to resolve this with SourceTree.

I also have a hgtags.orig file, if that helps.

2 answers

If SourceTree has the file labelled as conflicted, you can right-click the file and choose "Resolve Conflicts" > "Launch external merge tool". You will need to have merge software installed and configured with SourceTree.

If it is NOT marked as conflicted in SourceTree (I suspect SourceTree may think you already resolved the merge since you have an .orig version), you can right-click the file and "Resolve conflicts" > "restart merge".

If you don't know how to merge in general, you should probably search the internet for tutorials. Explaining how to merge is a little too in-depth for a QA site answer.

Before getting your reply, I noticed a small hunk marked as different the hgtags file. I chose to delete that hunk. Maybe that's why I had the .orig version. I then selected the file (it was still marked as conflicted) and chose to resolve the conflict with external diff software. But I didn't have any such software installed (I thought I had Beyond Compare configured with SourceTree, burt apparently not). After SourceTree failed to load any diff software, I noticed the file was no longer conflicted and all worked fine. I later configured SourceTree to work with Beyond Compare for the future, if I need it.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

747 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you