Agent Skills: Uncommit

Undo the last commit, keeping changes as unstaged in the working directory

UncategorizedID: chris-metz/agent-skills/uncommit

Install this agent skill to your local

pnpm dlx add-skill https://github.com/chris-metz/agent-skills/tree/HEAD/skills/uncommit

Skill Files

Browse the full folder contents for uncommit.

Download Skill

Loading file tree…

skills/uncommit/SKILL.md

Skill Metadata

Name
uncommit
Description
Undo the last commit, keeping changes as unstaged in the working directory

Uncommit

Undo the last commit on the current branch, leaving the changed files as unstaged modifications in the working directory.

Instructions

  1. Run git log --oneline -1 to show the user which commit will be undone.
  2. Run git reset HEAD~1 to undo the last commit (mixed reset — changes become unstaged).
  3. Run git status to show the resulting working directory state.
  4. Report the result to the user.