Git Undo

Use this skill when the user wants to undo git changes — revert commits, unstage files, or discard working directory changes.

javimosch 9fe9617 609 B Updated

File contents

git-undo Plugin

git-undo provides smart git undo operations.

Usage Examples

  • "undo the last commit"
  • "unstage all staged files"
  • "discard changes in working directory"
  • "undo a specific commit by hash"

Installation

npm install -g git-undo

Key Features

  • Smart undo for all git states
  • Commit revert with history
  • Unstage and discard operations
  • Reflog awareness for safety
  • Interactive confirmation prompts

javimosch/supercli/tree/main/plugins/git-undo/skills/quickstart commit 9fe96172b6

Frequently asked questions

npx skillmds@latest add javimosch/git-undo