spillwavesolutions/agent_rulez/mastering-git-cli
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Git CLI operations, workflows, and automation for modern development (2025). Use when working with repositories, commits, branches, merging, rebasing, worktrees, submodules, or multi-repo architectures. Includes parallel agent workflow patterns, merge strategies, conflict resolution, and large repo optimization. Triggers on git commands, version control, merge conflicts, worktree setup, submodule management, repository troubleshooting, branch strategy, rebase operations, cherry-pick decisions, and CI/CD git integration.
Install
npx vskill@latest install spillwavesolutions/agent_rulez/mastering-git-cliSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Git CLI Skill (2025 Edition)
Production-ready Git workflows and automation for modern development.
Compatibility: Git 2.38+ recommended. Git 2.51+ for full SHA-256/Reftable support.
Triggers
This skill activates on:
gitcommands and version control questions- Merge conflicts, rebase operations, cherry-pick decisions
- Worktree setup and submodule management
- Branch strategy and repository troubleshooting
- Large repo optimization (Scalar, sparse checkout, blobless clones)
- CI/CD git integration and performance tuning
Quick Start
Most Common Patterns
Modern Git Config (2025 Defaults)
Decision Trees
Merge vs Rebase vs Cherry-pick
Worktrees vs Branches vs Stash
Submodules vs Subtree vs Monorepo
Reset vs Revert vs Restore
Clone Strategy (Large Repos)
checkout vs switch/restore
Merge Easy Buttons
Integrate feature into main
Update feature with latest main
Resolve all conflicts using theirs
Resolve all conflicts using ours
Abort a broken merge
Undo a pushed merge
Merge multiple branches at once
Script Usage
Agent Worktree Setup
Create isolated worktrees for parallel agent development:
Use case: Running 3 Claude agents in parallel on different features, each with isolated working directories.
Agent Worktree Cleanup
Remove all agent worktrees and optionally delete branches:
Submodule Status Report
Get readable status of all submodules:
Git Health Check
Diagnose common repository issues:
Reference Navigation
Read the appropriate reference file based on your task:
| Task | Reference File | |
|---|---|---|
| Understand Git internals, object model, DAG | references/foundations.md | |
| Configure Git, set up 2025 defaults | references/foundations.md | |
| Clone, commit, log, branch basics | references/daily-usage.md | |
| Create/manage worktrees | references/worktrees.md | |
| Set up parallel agent workflows | references/worktrees.md | |
| Choose merge strategy | references/merge-operations.md | |
| Resolve merge conflicts | references/merge-operations.md | |
| Use rerere for conflict resolution | references/merge-operations.md | |
| Add/update/manage submodules | references/submodules.md | |
| Multi-repo project architecture | references/submodules.md | |
| Reset, revert, restore operations | references/advanced-operations.md | |
| Interactive rebase, squashing | references/advanced-operations.md | |
| Stashing, tags, hooks | references/advanced-operations.md | |
| Recover lost commits/branches | references/recovery.md | |
| Troubleshoot common errors | references/recovery.md | |
| Command cheat sheet | references/recovery.md | |
| SHA-256, Reftable, SSH signing | references/git-2025-features.md | |
| git switch/restore, range-diff | references/git-2025-features.md | |
| Git maintenance, bisect run | references/git-2025-features.md | |
| Merge queues, pre-commit framework | references/git-2025-features.md | |
| Partial/blobless clones, Scalar | references/large-repos.md | |
| Sparse checkout for monorepos | references/large-repos.md | |
| Bare repo + worktree layout | references/large-repos.md | |
| CI/CD Git optimization | references/large-repos.md |
Critical Knowledge
The -X ours vs -s ours Trap
Conflict Style Recommendation
Shows base version in conflicts, making resolution clearer:
Branch Can Only Exist in One Worktree
A branch can only be checked out in ONE worktree. To work on it elsewhere:
Submodules Default to Detached HEAD
After git submodule update, always checkout a branch before making changes:
2025 Easy Buttons
Find the bug-introducing commit automatically
Compare rebased PR (what actually changed)
Monorepo: checkout only what you need
Set up performance optimization
SSH signing setup (simpler than GPG)
Migrate to reftable (10K+ branches)
Anti-Patterns (Avoid These)
Don't use checkout for file operations
Don't shallow clone for development
Don't skip --force-with-lease
Don't run git gc manually
Don't rebase shared branches
Don't commit secrets or generated files
Don't ignore merge conflicts
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.skilz/skills/mastering-git-cli/SKILL.md
Popularity
- Repository stars
- 34
- Repository forks
- 8
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Mar 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/spillwavesolutions/agent_rulez/mastering-git-cli)