You committed the refactor AFTER the feature. Reviewers want the refactor first so the feature diff is small.
Interactive rebase lets you swap commit order — but conflicts can appear.
Medium · 3 steps · +500 XP
This scenario walks through 3 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~2git log --onelinegit push --force-with-leaseMove lines up/down in the rebase editor. Resolve conflicts, --continue.