Skip to content
Discussion options

You must be logged in to vote

@IOutis

🔹 How merge conflicts look in Git

When a merge conflict happens, Git marks the conflicting lines in the file like this:

<<<<<<< HEAD
This is your change in the current branch.
=======
This is the change from the branch you’re merging.
>>>>>>> feature-branch

Everything between <<<<<<< HEAD and ======= is your version.

Everything between ======= and >>>>>>> feature-branch is the other branch’s version.

👉 You resolve it by editing the file, keeping the correct lines (or combining them), then saving and committing again.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@IOutis
Comment options

Answer selected by IOutis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants