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

Resolve the Conflict

The same git checkout --theirs and git checkout --ours commands we used with merge can be used to resolve conflicts during a rebase.

You also may have noticed that if you open the file in your editor (depending on your editor) it has UI features to help you resolve the conflict. For example, in VS Code you will see something like this:

"Accept incoming change" is the same as git checkout --theirs, and "Accept current change" is the same as git checkout --ours.

In a merge, --ours refers to your current branch, but in a rebase, --ours refers to the branch you're rebasing onto.

Assignment

    • With rebase conflicts, unlike merge conflicts, we don't commit to resolve the conflict. Instead, we --continue the rebase.

Run and submit the CLI tests while still on the banned branch.