1---2name: tamagui-tamagui-git-safety3description: git safety4---56# git safety78rules for git operations in this repo.910## rules1112- NEVER force push (`git push --force` or `git push -f`)13- NEVER `git reset --hard` without explicit permission14- NEVER `git clean -fd` without explicit permission15- prefer `git stash` over `git reset`16- always `git pull` before `git push`1718## forbidden commands1920these require EXPLICIT user permission:21- `git push --force`22- `git push -f`23- `git push --force-with-lease`24- `git reset --hard`25- `git clean -fd`26- `git checkout -- .` (discards all changes)2728## safe alternatives2930instead of `git reset --hard`:31- `git stash` to save changes32- `git stash pop` to restore3334instead of force push:35- `git pull --rebase` then normal push36- ask user how to resolve conflicts3738## workflow39401. `git pull` before making changes412. make changes423. `git add` relevant files434. `git commit`445. `git pull` again before push456. `git push` (no force flags)4647---48> Converted and distributed by [TomeVault](https://tomevault.io) | [Claim this content](https://tomevault.io/claim/tamagui/tamagui)
Run npx skillmds@latest add mahabdalla/tamagui-tamagui-git-safety in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
git safety It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
mahabdalla (@mahabdalla) published this skill. Their other Agent Skills are listed on their SkillMD profile.