Agent skill

git

Git version control with branching, merging, and rebasing. Use for source control.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-g1joshi-agent-skills

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.

Worktrees

Checkout multiple branches of the same repo in different folders simultaneously.

Best Practices (2025)

Do:

  • Use git switch / git restore: The modern alternatives to the overloaded git checkout.
  • Use git maintenance: Speed up fetch/clone in the background.
  • Sign Commits: Use SSH keys to sign commits (Commit Signing).

Don't:

  • Don't force push to shared branches: git push --force-with-lease is the safer alternative.

References

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results