Basic information
About git-safety
Release safety rules. INVOKE WHEN: yarn release, npm publish, release canary, release packages, publishing, skip checks, skip tests. NEVER skip checks or tests without explicit permission.
git-safety is an agent skill listed in the AddMCP.net directory, published by tamagui. Runtime: TypeScript. License: MIT. The repository has 14,293 GitHub stars. Source code is hosted on github.com. Related topics: atomic-css, css-in-js, optimizing-compiler, react, react-native.
Overview
What is git-safety?
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)
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In