You bundled an unrelated CSS tweak into your big API refactor commit. Reviewer asks: 'Please separate these.'
Interactive rebase, mark `edit`, reset HEAD~ to unstage, then add + commit twice.
Hard · 5 steps · +700 XP
This scenario walks through 5 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git rebase -i HEAD~1git reset HEAD^git commit -m "refactor: api"git commit -m "style: button tweak"git rebase --continueedit → reset HEAD^ → add -p → commit → commit → rebase --continue.