Git Safety git-safety
Git safety rules. INVOKE WHEN: git push, force push, git reset, git clean, destructive git, push force, reset hard. NEVER force push or do destructive git operations.
Works in Claude, ChatGPT, Codex and more
- Our test
- —
- not tested yet
- GitHub stars
- 14k
- tamagui/tamagui
- Added by
- 0
- members
- Updated
- Dec 6
- commit 1d5e750
- Content
- 1 file
- no scripts · 1 KB
- License
- MIT
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: git-safety description: "Git safety rules. INVOKE WHEN: git push, force push, git reset, git clean, destructive git, push force, reset hard. NEVER force push or do destructive git operations."
git safety
rules for git operations in this repo.
rules
- NEVER force push (
git push --forceorgit push -f) - NEVER
git reset --hardwithout explicit permission - NEVER
git clean -fdwithout explicit permission - prefer
git stashovergit reset - always
git pullbeforegit push
forbidden commands
these require EXPLICIT user permission:
git push --forcegit push -fgit push --force-with-leasegit reset --hardgit clean -fdgit checkout -- .(discards all changes)
safe alternatives
instead of git reset --hard:
git stashto save changesgit stash popto restore
instead of force push:
git pull --rebasethen normal push- ask user how to resolve conflicts
workflow
git pullbefore making changes- make changes
git addrelevant filesgit commitgit pullagain before pushgit push(no force flags)