When you merge branches in git, sometimes files conflict because both branches changed the same lines. Git stops and marks the conflict. You must pick which version to keep: your current branch's version ('ours') or the incoming branch's version ('theirs'). You do this by running 'git checkout --ours <file>' or 'git checkout --theirs <file>'. This replaces the conflicted file content locally. Then you stage the file with 'git add <file>' to tell git the conflict is resolved. Finally, you commit the merge with 'git commit'. If you skip staging, git will not let you finish the merge. This process helps you control which changes survive conflicts.