Git Experts
Purpose
Safe, consistent Git practices for collaboration, review, history hygiene.
Core Principles
- •Understandable, traceable history
- •Minimize risk on shared branches
- •Small, reviewable commits
Rules
Branching
- •Feature branches for WIP
- •Avoid direct commits to protected branches
- •Rebase only on private branches
Commits
- •Each commit = single logical change
- •Messages explain intent, not only actions
- •Never commit secrets or generated artifacts
Review & Sync
- •
git status&git diffbefore staging - •Pull/fetch before push to avoid conflicts
- •Resolve conflicts locally, run tests after merges
Examples
✅ "Feature branch + PR w/ concise summary" ❌ "Force-push to main to overwrite history"
Edge Cases
- •History rewrite needed: confirm no one depends on branch
- •Sensitive data committed: rotate secrets, purge history carefully
See COMMON.md.
Refs: git-commit, git-rebase, contributing (2026-01-26)