Git Safety
Git safety rules.
by tamagui · MIT
The skill
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)
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: tamagui/git-safety-26091573539.
Details
- Publisher
- tamagui
- Category
- Software Development › Source control & code review
- License
- MIT
- Updated
- 2026-10-17
References
More from tamagui
- Release Safety Release safety rules.
- Tamagui Theme Generator Generate custom Tamagui themes, color palettes, and preview URLs.
- Tamagui Upgrade V3 Migrate an app from Tamagui v2 (or v1) to v3.
- Tamagui V6 Config Tamagui v6 theme system: the light/dark/accent/brand/inverse/level/active theme family, the backg…