

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Conflicting Changes
incomplete
2: Merge Conflicts
incomplete
3: Merge
incomplete
4: Edit the File
incomplete
5: Resolution
incomplete
6: Conflict Quiz
incomplete
7: Back to Main
incomplete
8: Back to Main
incomplete
9: Ours and Theirs
incomplete
10: Multi-conflict
incomplete
11: Checkout Conflict
incomplete
12: No Merge Commits
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
We've manually edited files to resolve conflicts, but it turns out Git has some built-in tools to help us out.
The git checkout command can checkout the individual changes during a merge conflict using the --theirs or --ours flags.
--ours keeps the version of the file from your current branch (the one you're on before merging)--theirs uses the version of the file from the branch you're merging into your current branchgit checkout --theirs path/to/file
customers/all.csv (keep "theirs")orgs/partners.txt (keep "ours")Run and submit the CLI tests from the root of the repo while still on the main branch.