git
Installation
SKILL.md
Git
Git is the foundation of modern software. In 2025, features like Sparse Checkout and Scalar (for monorepos) are becoming mainstream.
When to Use
- Always: Use it for everything. Text files, config, code.
- Bisect: Finding bugs by binary search.
Core Concepts
Graph
Commits form a DAG (Directed Acyclic Graph).
Rebase vs Merge
- Merge: Preserves history, creates bubbles.
- Rebase: Rewrites history, linearizes.