I made some changes in the new branch.
I go out to master .
When I tried to merge:
$ git merge new Auto-merging js/site.js CONFLICT (content): Merge conflict in js/site.js Automatic merge failed; fix conflicts and then commit the result.
So, I installed kdiff3 and configured my configuration files, and when I tried to use mergetools, I got:
$ git mergetool kdiff3 No files need merging
I ran diff and it output this:
diff --cc js/site.js index 8c17d62,7955b13..0000000 --- a/js/site.js +++ b/js/site.js @@@ -72,4 -81,18 +81,22 @@@ function doSmallScreen() $(document).ready(function () { calculateScreen(); - }); ++<<<<<<< HEAD ++}); ++======= + $(window).resize(function () { + delay(function () { + calculateScreen(); + }, 500); + }); + }); + + + var delay = (function () { + var timer = 0; + return function (callback, ms) { + clearTimeout(timer); + timer = setTimeout(callback, ms); + }; -})(); ++})(); ++>>>>>>> new
I am confused about how to solve this, I want to solve it in the easiest way, I donβt care if I lose information from the new branch, but I want to understand what went wrong and why I can not use the merge tools.
It just seems strange to me that I have a merge conflict, but the files do not need to be merged.
Trufa
source share