Over the weekend, I worked at home and used git to merge code changes with my office computer (connected via vpn) and found some very ugly merging problems.
First of all, the merger should have been very clean, since everything was done in the office on Friday, and I only made changes to my home computer on Saturday and Sunday. But when I pulled the changes onto my office computer, I ended a ton of merge conflicts.
I cleared the merge conflicts, but then I found that many files (from what I can tell any file that I changed over the weekend) had <<<<<<< HEAD" and ">>>>>>> D1/master for all files. For example:
diff --git a/web/Web.Controller/Helpers/FormsAuthentication.cs b/web/Web.Controller/Helpers/FormsAuthentication.cs index 8571f53..4a9c9fc 100644 -- a/web/Web.Controller/Helpers/FormsAuthentication.cs ++ b/web/Web.Controller/Helpers/FormsAuthentication.cs @@ -10,7 +10,10 @@
I managed to fix the code with kdiff by comparing it with the source code copied from my home computer, but it just seems to be completely corrupted.
Any ideas what is going on?
git merge conflict
Dan
source share