We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Checkout Conflict

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 branch
git checkout --theirs path/to/file

Assignment

    • 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.