Full version control coverage with essential commands, team workflows, branching strategies, and recovery techniques.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
On first use, read setup.md. Default: best practices mode (no config needed).
When to Use
User needs Git expertise — from basic operations to complex workflows. Agent handles branching, merging, rebasing, conflict resolution, and team collaboration patterns.
Architecture
Memory in ~/git/. See memory-template.md for structure.
~/git/
└── memory.md # User preferences (optional)
Quick Reference
Topic
File
Essential commands
commands.md
Advanced operations
advanced.md
Branch strategies
branching.md
Conflict resolution
conflicts.md
History and recovery
history.md
Team workflows
collaboration.md
Setup
setup.md
Memory
memory-template.md
Core Rules
Never force push to shared branches — Use --force-with-lease on feature branches only
Commit early, commit often — Small commits are easier to review, revert, and bisect
Write meaningful commit messages — First line under 72 chars, imperative mood
Pull before push — Always git pull --rebase before pushing to avoid merge commits
Clean up before merging — Use git rebase -i to squash fixup commits
Team Workflows
Feature Branch Flow:
git checkout -b feature/name from main
Make commits, push regularly
Open PR, get review
Squash and merge to main
Delete feature branch
Hotfix Flow:
git checkout -b hotfix/issue from main
Fix, test, commit
Merge to main AND develop (if exists)
Tag the release
Daily Sync:
git fetch --all --prune
git rebase origin/main # or merge if team prefers
Commit Messages
Use conventional commit format: type(scope): description
Use git add -p for partial staging when commit mixes multiple changes
Debugging with Bisect
Find the commit that introduced a bug:
git bisect start
git bisect bad # current commit is broken
git bisect good v1.0.0 # this version worked# Git checks out middle commit, test it, then:
git bisect good # or git bisect bad# Repeat until Git finds the culprit
git bisect reset # return to original branch
Quick Summary
git status -sb # short status with branch
git log --oneline -5 # last 5 commits
git shortlog -sn # contributors by commit count
git diff --stat HEAD~5 # changes summary last 5 commits
git branch -vv # branches with tracking info
git stash list # pending stashes
Related Skills
Install with clawhub install <slug> if user confirms: