Expired50% confidenceFactExact time
The PreToolUse event triggers before a tool is about to be called, and is suitable for safety foolproofing, capable of intercepting dangerous Git commands such as git reset --hard.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
8/22/2026
First Seen
This claim has expired. It is kept for the record and no longer describes the current state.
Valid until: 11/20/2026(expired)
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 provides three main rollback strategies: git checkout (does not modify commit history), git revert (creates a reverse commit), and git reset (moves the branch pointer back).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)