Can someone explain this code and what HEAD is exactly used for?

Viewed 47

Below is the code segment from a MATLAB script file. I do not understand the operator/command <<<<<<< HEAD.

<<<<<<< HEAD
T    = [];
T1   = [];
T10  = [];
T20  = [];
T200 = [];
=======
>>>>>>> b877b50ba3f4af3500ca1c1b4f994cacc285fe00
2 Answers

The lines

<<<<<<< HEAD
>>>>>>> b877b50ba3f4af3500ca1c1b4f994cacc285fe00

are created by your version control system. I'm assuming you are using git for your code repository? This means you have a merge conflict at revision b877b50ba3f4af3500ca1c1b4f994cacc285fe00 (the hash of the commit). You either are looking at a file you tried to commit, or someone committed a file without resolving a conflict.

Related