Merging a single file?

Thomas Williams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2012

Hi,

I've been using your product for a while now and I'm loving it. I do have one question, however: When merging, if another developer and I are working on the same file, it causing a conflict and we have to choose one or the other and one of us will end up losing the work. Is there a way to merge a single file into itself and keep both developers changes?

Thank you for any help!

1 answer

0 votes
stevestreeting
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.
March 1, 2012

Sure, when you merge (so after you've pulled changes and either have 2 heads in Mercurial which you merge, or in git if the merge has already got conflicts), just right-click on a file which has conflicts and select 'Resolve Conflicts > Launch External Merge Tool'. The default is FileMerge, and you can then go through each change and resolve the merge by combining the changes or choosing one or the other in each case within the file.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events