After mergin branches with the master
branch I pulled changes to the Git server. After a few days I clones that repository noticing that I cannot compile it (have compile-time errors).
After inspecting, I noticed that Git inserter some text into the one source file. It looked like this
public class MainActivity extends Activity {
<<<<<<< HEAD
final String TAG = MainActivity.class.getSimpleName();
private IabHelper mHelper;
//...rest of the code
//after 250 lines of code or so again
//...
}
};
=======
private IabHelper mHelper;
//this field and all next ones, till the end, are repeated
//then in the end of a source file, there was
}
};
>>>>>>> 4
}
So intruders were:
- <<<<<<< HEAD
- =======
- >>>>>>> 4
Why did it happen and how? Was it my fault? I am not so used to Git, I used it in like 3 projects so far.