What problem does it solve? Git commands fail in confusing, silent, or destructive ways: rev-parse --short rejects multiple revisions, chmod +x is ignored when core.fileMode=false, CRLF line endings break scripts, and shared checkouts let commits land on the wrong branch. This Skill provides a quick-reference table and in-depth sections covering these failure modes so an agent avoids them or diagnoses them deterministically. ## Core Features & Use Cases - Quick-reference table of git footguns: Covers rev-parse pitfalls, rerere stale resolutions, merge-tree --write-tree trial merges, checkout -- discarding uncommitted work, exec-bit handling, line endings, interactive flags, and multi-key --sort ordering. - Safe commit and push procedures: Chain quality gates with &&, commit only your own paths when sessions share a checkout, review the full push range for leaked secrets, and use .git/info/exclude for private tooling on forks. - CI and hook guidance: Configure read-only PATs with URL rewrites for private git dependencies in CI, and clear GIT_DIR in hooks triggered from linked worktrees. - Use Case: Before pushing a release, run the pre-push review to scan git diff @{push}..HEAD for credentials, verify the branch and upstream sync state, and confirm hooks are committed with mode 100755. ## Quick Start Ask the agent to check why a committed shell hook is not executable after cloning, or to verify the current repo state before committing.