‹ 首页

undo

@thettwe · 收录于 1 周前

Safely undo the most recent git commit(s) on a feature branch. TRIGGER when the user says "undo my last commit", "undo last N commits", "oops revert that commit", "undo the commit but keep my changes", "uncommit", "revert my last change", "take back that commit", "/nyann:undo". Trigger on "revert" only when the user clearly means undoing a local commit (not `git revert` on a published one — see DISAMBIGUATION). DISAMBIGUATION: if the user says "revert a commit that's already on main" / "revert a pushed commit" / mentions a specific remote SHA, this is the `git revert` workflow — undo-skill refuses pushed commits by default. Explain the difference and either use --allow-pushed (risky) or direct them to `git revert <sha>`. Do NOT trigger on "undo the last edit" (that's editor-level) or "rollback the deploy" (that's infrastructure, out of scope). Do NOT trigger on main/master/develop — long-lived branches should never be history-rewritten; use `git revert` instead.

适合你,如果在功能分支上不小心提交了代码想撤回

/ 通过 npx 安装 校验哈希
npx oh-my-skill add thettwe/nyann/undo
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- thettwe/nyann/undo
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify thettwe/nyann/undo
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
6GitHub stars
~1K上下文体积 · 单文件
索引托管

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。