Unverified50% confidenceFactExact time
PreToolUse 事件在工具准备被调用前触发,适合安全防呆,可拦截危险的 Git 指令如 git reset --hard
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
8/22/2026
First Seen
Valid until: 11/20/2026
Sources
Related Entities
Related Claims
UnverifiedGit Hook is a mechanism introduced by Linus Torvalds when he designed Git in 2005, allowing scripts to be automatically executed before and after operations such as commit and push.71% similarUnverifiedGit提供三种主要回退策略:git checkout(不修改提交历史)、git revert(创建反向commit)和git reset(移回分支指针)70% similarUnverifiedactions/checkout by default persists the GITHUB_TOKEN into the Git configuration (persist-credentials: true).69% similarUnverifiedThe tool takes a snapshot at every step, supporting rollback to the state before modifications without affecting Git history.69% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/788335API
curl https://kongchang.com/api/v1/knowledge/claims/788335MCP
get_claim(id=788335)