reset --soft, --mixed, --hard
You committed too early and want to undo the last commit but keep its changes staged, ready to commit again. Which command?
Choose one answer
git reset --soft HEAD~1
git reset --hard HEAD~1
git reset --mixed HEAD~1
git revert HEAD