Skip to content
Discussion options

You must be logged in to vote

hi @consultankit88-lang
Merge conflicts usually happen when Git finds different changes in the same part of a file.

A safe process is:

Run git pull or merge/rebase the target branch.
Check conflicted files using git status.
Open each file and resolve the conflict markers (<<<<<<<, =======, >>>>>>>).
Keep the correct changes and remove the markers.
Run tests/build to make sure nothing was accidentally broken.
Stage the resolved files: git add .
Complete the merge with git commit (or git rebase --continue if rebasing).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by consultankit88-lang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants