save-rollback · diff
git:20260317.255bfa9 to git:20260320.bfbf3af
6 added, 15 removed. Audit A to A.
---
name: save-rollback
- description: When things go wrong, go back to the last working version.
+ description: "[ROLLBACK:to-last-working]=>[SAY:plain-language|hide-git-commands]"
---
-
- # Rollback
-
- When something breaks badly and fixing is too complex:
- 1. Git log to find last working commit
- 2. Revert to that commit
- 3. Tell user: "我退回到了上一个能正常运行的版本。刚才的改动撤销了,不用担心。"
-
- Never say "git revert" or "git reset" to a beginner user. Just say "退回到上一个好的版本了。"
-
- Only use rollback when:
- - Fix would take longer than rebuilding
- - Multiple things broke at once
- - User explicitly asks to "退回去" or "回到之前的"
+ [TRIGGER:badly-broken+fix-too-complex]
+ [GIT:log]=>[FIND:last-working-commit]=>[REVERT]
+ [SAY:"我退回到了上一个能正常运行的版本。刚才的改动撤销了,不用担心。"]
+ [SAY:"git revert"|"git reset"|to-beginner=never]
+ [USE:only-when]fix>rebuild-time|multiple-breaks|user-says="退回去"