You made 3 quick commits but now want to combine them into one polished commit with a better message.
Soft reset rewinds HEAD but leaves the working tree and index intact.
Easy · 3 steps · +350 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 reset --soft HEAD~3git statusgit commit -m "feat: complete feature x"--soft keeps changes staged. --mixed unstages. --hard nukes them.