DevOpsTypeScript

Git Rollback

by UfoMiao

Git Rollback is a DevOps skill for Claude Code, published by UfoMiao in zcf.

6.1K stars424 forkson UfoMiao/zcfAdded 2026/08/15Repository updated 2026/08/12
agentaiai-agentbmad-methodccrclaudeclaude-4claude-aiclaude-codecligptgpt-5llmllm-codenodejsopenaiprompttypescriptworkflowzcf
Install in seconds
Install Git Rollback
Copy Git Rollback into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/UfoMiao/zcf/tree/main/templates/skills/zh-CN/git-rollback ~/.claude/skills/git-rollback

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/UfoMiao/zcf.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
templates/skills/zh-CN/git-rollback/SKILL.md in UfoMiao/zcf
Installs to
~/.claude/skills/git-rollback
Collection
One of 20 skills cataloged from this repository
Category
DevOps798 skills

What Git Rollback does

Git Rollback interactively rolls back a Git branch to a historical version by listing branches and commits, previewing commands with a dry-run default, then executing reset or revert after confirmation. Use it to safely undo hotfixes, revert bad commits, or inspect branch history before changing state.

Git Rollback is cataloged under DevOps on DirSkills. Git Rollback comes from a repository tagged agent, ai, ai-agent, bmad-method and ccr.

Documentation

README

Claude Command: Git Rollback

目的:安全、可视地将指定分支回滚到旧版本。 默认处于 只读预览 (--dry-run);真正执行需加 --yes 或在交互中确认。


Usage

# 纯交互:列出分支 → 选分支 → 列最近 20 个版本 → 选目标 → 选择 reset 或 revert → 二次确认
/git-rollback

# 指定分支,其他交互
/git-rollback --branch feature/calculator

# 指定分支与目标 commit,并用 hard‑reset 一键执行(危险)
/git-rollback --branch main --target 1a2b3c4d --mode reset --yes

# 只想生成 revert 提交(非破坏式回滚),预览即可
/git-rollback --branch release/v2.1 --target v2.0.5 --mode revert --dry-run

Options

This is the opening of the README. Read the full README on GitHub.

Commands Git Rollback provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /git-rollback

Frequently asked about Git Rollback

  • What else does UfoMiao publish alongside Git Rollback?

    Git Rollback is one of 20 skills that DirSkills catalogs from UfoMiao/zcf, the repository it ships in. Its siblings there include BMad Init, BMad Init and Feature Development. Each one is a separate skill with its own page in this directory, installs the same way Git Rollback does, and is maintained by UfoMiao in that same repository. The rest of the collection is listed on the UfoMiao/zcf page.

  • How does Git Rollback compare to other DevOps skills?

    Git Rollback ranks #134 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Git Rollback against them. Open each page to compare what they document and how they install.

More from UfoMiao/zcf

Git Rollback is one of 20 skills cataloged on DirSkills from UfoMiao/zcf.

See all 20 skills
🚀
2w ago

BMad Init

BMad Init initializes or updates BMad-Method (V6) in a project, running the official installer, fixing known output folder bugs, and updating .gitignore. Use it for fresh installs, quick updates, or legacy V4 migration.
AI Engineering
6.1K424
🚀
2w ago

BMad Init

BMad Init initializes or updates BMad-Method V6 in a project, checking for legacy V4 installations and running the appropriate non-interactive installer. It also fixes known installer output-folder issues and keeps .gitignore aligned with V6.
AI Engineering
6.1K424
🛠️
2w ago

Feature Development

Feature Development turns a new feature request into a plan, discussion, and execution workflow. It uses planning and design agents to produce implementation documents and guide development.
AI Engineering
6.1K424
🗂️
2w ago

Feature Planning

Feature Planning analyzes incoming requests to determine whether they are requirement planning, discussion iteration, or execution implementation. It then generates planning documents and coordinates agents to add new features, ensuring frontend tasks have UI designs before development.
AI Engineering
6.1K424
🧹
2w ago

Git Clean Branches

Git Clean Branches safely identifies and cleans up merged or stale Git branches with dry-run mode and protected branch configuration. It helps keep repositories clean without risking accidental deletion of important branches.
DevOps
6.1K424
🧹
2w ago

Git Clean Branches

Git Clean Branches identifies and safely deletes merged or stale Git branches, defaulting to a dry-run preview. Use it to clean local and remote branches after merges or inactivity.
DevOps
6.1K424