Skip to content
Discussion options

You must be logged in to vote

Ah well everyone has at least once been there.
To resolve this merge conflict according to best practices, this is what you should do:

  1. Identify the Conflict:
    First, check which files are conflicted by running ⁠git status. This will help you locate the files that need your attention.

  2. Open the Conflicted File:
    Open the file in your text editor. You will see the conflicting sections marked with ⁠<<<<<<<, ⁠=======, and ⁠>>>>>>>. The lines between ⁠<<<<<<< and ⁠======= are your changes, while those between ⁠======= and ⁠>>>>>>> are your teammate’s changes.

  3. Resolve the Conflict:
    Carefully review both sets of changes. Decide how you want to merge them—whether to keep your changes, your tea…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by fostira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants