1---2name: tamagui-tamagui-git-safety3description: "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."4metadata:5 source: https://skillmd.com/skills/mahabdalla/tamagui-tamagui-git-safety6---78# git safety910rules for git operations in this repo.1112## rules1314- NEVER force push (`git push --force` or `git push -f`)15- NEVER `git reset --hard` without explicit permission16- NEVER `git clean -fd` without explicit permission17- prefer `git stash` over `git reset`18- always `git pull` before `git push`1920## forbidden commands2122these require EXPLICIT user permission:23- `git push --force`24- `git push -f`25- `git push --force-with-lease`26- `git reset --hard`27- `git clean -fd`28- `git checkout -- .` (discards all changes)2930## safe alternatives3132instead of `git reset --hard`:33- `git stash` to save changes34- `git stash pop` to restore3536instead of force push:37- `git pull --rebase` then normal push38- ask user how to resolve conflicts3940## workflow41421. `git pull` before making changes432. make changes443. `git add` relevant files454. `git commit`465. `git pull` again before push476. `git push` (no force flags)4849---50> Converted and distributed by [TomeVault](https://tomevault.io) | [Claim this content](https://tomevault.io/claim/tamagui/tamagui)
Run npx get-skill 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. Independent scanners report: SkillSpector: CAUTION, Skill Scanner: PASS. 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.