Gitrules banner
waynesutton waynesutton

Gitrules

Git community

Description

## Critical Git Safety Protocol **🚨 NEVER USE `git checkout` TO REVERT CHANGES 🚨** **MANDATORY GIT SAFETY RULES:** - **NEVER run `git checkout -- <file>`** without first examining what you're about to destroy - **ALWAYS use `git diff <file>`** to see exactly what changes will be lost - **MANUALLY undo changes** by editing files to revert specific problematic sections - **Preserve valuable work** — if user says changes are bad, ask which specific parts to revert - **`git checkout` destroys A

Installation

Installs to ~/.claude/skills/waynesutton-markdown-site-gitrules/SKILL.md

Terminal
mkdir -p ~/.claude/skills/waynesutton-markdown-site-gitrules && curl -fsSL https://raw.githubusercontent.com/waynesutton/markdown-site/HEAD/.claude/skills/gitrules.md -o ~/.claude/skills/waynesutton-markdown-site-gitrules/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository