Hi Kesab,
Do these signs look something like this?
<<<<<<< HEAD
this is some content
content to append
=======
totally different content to merge later
>>>>>>> feature_branch
If so, these are not signs of a corrupted file, but conflict markers coming from Git.
If you change the same part of the same file differently in the two branches you’re merging, Git won't be able to merge them because it won't know which version to keep.
The content between the <<<<<<< HEAD line and ======= is content that exists in the current branch which the HEAD ref is pointing to. The content between ======= and >>>>>>> feature_branch is content that is present in the merging branch.
If there are conflicts, you need to resolve them manually by editing the file and committing the changes.
You can read more details on the following page of the Git book, section Basic Merge Conflicts:
You can also check our documentation page on how to resolve merge conflicts:
Please feel free to reach out if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.