What happens to the changes from the undone commit?
git reset --soft HEAD~1
- They stay staged in the index
- They are discarded completely
- They move to a new stash entry
- They remain only in the working tree
--soft only moves the branch pointer. The index and working tree are untouched, so the changes are ready to be committed again.