Claude-skill-registry git-undo

Undo the last commit while keeping changes staged. Use when you need to fix a commit message or add missing files.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/git-undo" ~/.claude/skills/majiayu000-claude-skill-registry-git-undo && rm -rf "$T"
manifest: skills/data/git-undo/SKILL.md
source content

Git Undo

Undo the last commit but keep changes staged.

  1. Undo the last commit but keep the file changes in the staging area.
    • Command:
      git reset --soft HEAD~1
    • This allows you to fix the commit message or add missing files before committing again.