Uncommit
Undo the last commit on the current branch, leaving the changed files as unstaged modifications in the working directory.
Instructions
- Run
git log --oneline -1to show the user which commit will be undone. - Run
git reset HEAD~1to undo the last commit (mixed reset — changes become unstaged). - Run
git statusto show the resulting working directory state. - Report the result to the user.