---
title: "git reset --hard → 未提交的變更消失。/ultra undo 1 從快照中還原了它"
url: "https://claudemods.dev/zh-tw/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-tw"
content_locale: "zh-tw"
---

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