

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: Rebase Conflicts
incomplete
2: Make the Conflict
incomplete
3: Resolve the Conflict
incomplete
4: Deleted Commit
incomplete
5: Cleanup
incomplete
6: Repeat Resolution Setup
incomplete
7: RERERE
incomplete
8: Merge Back In
incomplete
9: Accidental Commit
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
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.
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.