You bundled an unrelated CSS tweak into your big API refactor commit. Reviewer asks: 'Please separate these.'
Undo the commit but keep its content, then commit the two halves separately.
Hard · 6 steps · +700 XP
This scenario walks through 6 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 reset HEAD~1git commit -m "refactor: api"echo "button { padding: 8px }" > button.cssgit add button.cssgit commit -m "style: button tweak"git log --onelinereset HEAD~1 → commit the first half → stage the second half → commit again. `edit` in a rebase todo drops you into exactly this state, one commit deeper in history.