undo-changes

Revert local and GitHub commits using git reset or revert.

1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/Pepsi1978/proggs --skill undo-changes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: undo-changes
Source: https://github.com/Pepsi1978/proggs/tree/main/claude-code-setup/commands/undo-changes
Command: npx skills add https://github.com/Pepsi1978/proggs --skill undo-changes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reverts the last commit(s) both locally AND on GitHub, with clear explanation of what was undone.

Core Features & Use Cases

  • Analyze recent commits and identify candidates for revert.
  • Revert locally (with safe fallbacks) and push changes to GitHub to ensure history consistency.
  • Support multiple scenarios: revert last commit, revert specific commit, or revert a range of commits with proper messaging and safeguards.
  • Provide informative feedback to the user about what was undone and the resulting commit messages.

Quick Start

Tell Claude Code to undo the most recent commit both locally and on GitHub.

Frequently Asked Questions about undo-changes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I revert the last git commit both locally and on GitHub?

Reverting the last git commit locally and on GitHub requires syncing both environments. This Skill identifies the target commit, performs a local revert using git reset --soft or git revert, then pushes the change to GitHub to maintain history consistency.

What's the best way to undo a specific commit that was already pushed to GitHub?

Undoing a specific pushed commit on GitHub requires using git revert to create an inverse commit rather than rewriting history. This Skill handles that scenario with explicit messaging, ensuring the remote history stays consistent while safely neutralizing the target commit.

Can I revert multiple commits at once without losing uncommitted changes?

Reverting multiple commits without losing uncommitted changes requires pre-checks before execution. This Skill enforces safeguards for uncommitted work, analyzes a range of commits, and proceeds with reversion only when it is safe to do so.

What is the difference between git reset and git revert for undoing version control changes?

Git reset --soft moves the branch pointer back while keeping staged files intact, whereas git revert creates a new commit that inverses the target. This Skill chooses between them based on whether the commit was local or already pushed to GitHub.

Why does git revert fail when I try to undo changes with pending work in my working directory?

Git revert can fail when uncommitted changes conflict with the revert operation. This Skill runs pre-checks to detect pending work and prompts the user with clear messaging, preventing unsafe reverts that would overwrite uncommitted work.