# Git Undo

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

- Skill: `javimosch/git-undo` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/git-undo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/git-undo/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/git-undo

---


# 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

```bash
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

