Skip to content
Back to skills

Git Undo

ASecurity

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

  • 666 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
toolsbashgit

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill git-undo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Undo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Undo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-git-undo/badge)](https://www.skillsdirectory.com/skills/majiayu000-git-undo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-undo
description: Undo the last commit while keeping changes staged. Use when you need to fix a commit message or add missing files.
disable-model-invocation: true
allowed-tools: Bash(git:*)
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.