---
title: "git reset --hard → 未提交的更改消失。/ultra undo 1 从快照中恢复了它"
url: "https://claudemods.dev/zh-cn/builds/git-reset-hard-uncommitted-change-gone-ultra-undo-1-restored-179393"
source: "https://x.com/i/status/2109403676229919191"
source_type: "x"
author: "joithan"
author_handle: "jothantranston"
stars: 0
category: "安全与隐私"
categories: ["security"]
tags: ["destructive-commands", "guard", "hooks", "snapshot", "undo"]
permission_level: null
scan_complete: false
added: "2026-10-16T16:48:32.148Z"
updated: "2026-10-16T16:48:32.149Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# git reset --hard → 未提交的更改消失。/ultra undo 1 从快照中恢复了它

git reset --hard → 未提交的更改消失。/ultra undo 1 从先前保存的快照中恢复了它。

ultramod 的防护会在你确认后才允许 reset --hard 和 rm -rf，并在它们运行前对工作树进行快照。Claude Code 模组。

MIT · https://t.co/KzJDhDA8en

你会点击确认吗？https://t.co/GYgO3AtNn4

## Original README

git reset --hard → uncommitted change gone. /ultra undo 1 restored it from a snapshot saved first.

ultramod's guard holds reset --hard and rm -rf for your yes and snapshots the work tree before they run. Claude Code mod.

MIT · https://github.com/mertkayacs/ultramod

Would you hit yes?
