Undo — Git skill for Claude Code
Undo the last git operation, after showing exactly what will be lost.
How to install Undo
Installs to ~/.claude/skills/guerlol-gitkit-undo/SKILL.md
mkdir -p ~/.claude/skills/guerlol-gitkit-undo && curl -fsSL https://raw.githubusercontent.com/guerlol/gitkit/HEAD/commands/undo.md -o ~/.claude/skills/guerlol-gitkit-undo/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Undo does
description: Undo the last git operation, after showing exactly what will be lost argument-hint: [what you want undone] allowed-tools: [Bash]
/undo
What the user wants undone (may be empty — infer from the reflog): $ARGUMENTS
Undo is the command most likely to destroy work. The order is always: read the state, state the consequence in plain words, get a yes, then act.
1. Read the state
git reflog -10 --date=relative
git status --short
git log --oneline -5
Work out what
Alternatives in Git
- 使用 Git Worktrees — 创建孤立的 Git worktrees,带有智能目录选择与安全验证 115.1k ★
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Crew Rollback
Undo the last task's file changes using git. Shows affected files and requires confirmation before reverting.
Raindrop Bookmark Organizer
Agent Skills-compatible skill: batch-organize a Raindrop.io library — structured notes, three-axis controlled
Worklane
Open-source harness for running a crew of Claude agents on a real codebase: parallel workers, an independent e
Check Active Git Files.Prompt
You are an expert at analyzing git history. Given a list of files and their modification counts, return exactl
Generate Build Report
Reconstruct how this repo was built from Claude Code session logs + git history and write a single BUILD_REPOR
Agentic Task System
CLI + MCP for agent context: a task layer over TickTick, Notion, GitHub, Obsidian & more (RRF retrieval, prove
Related Agents
Agent Protocol & Architectural Mandate
Version: 2.10.5 Target Project: git-mcp-server Last Updated: 2026-03-25 This document defines the operational
Paper Verifier
Compares the Rust implementation in outl-core against the pseudocode in Kleppmann et al. 2022 ("A highly-avail
12 Lost Link Monitor
The backlinks lost in the last 90 days, ranked by the authority lost, and which are worth reclaiming.