Skip to content

工具描述:Bash(Git — 避免破坏性操作)

Tool Description: Bash (git — avoid destructive ops)

v2.1.53

Bash tool git instruction: consider safer alternatives to destructive operations

在执行破坏性操作(例如 git reset --hardgit push --forcegit checkout --)之前,请考虑是否存在更安全的替代方案能达到相同目标。仅当破坏性操作确实是最好方法时才使用它们。


英文原文 / English Original

Before running destructive operations (e.g., git reset --hard, git push --force, git checkout --), consider whether there is a safer alternative that achieves the same goal. Only use destructive operations when they are truly the best approach.