Git Expert

Provide exact Git commands and workflows for branching, merging, and conflict resolution.

42|1|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/rar-file/surf --skill git-expert-rar-file
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Git Expert
Source: https://github.com/rar-file/surf/tree/main/skills/git_expert
Command: npx skills add https://github.com/rar-file/surf --skill git-expert-rar-file

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git workflows and conflicts often derail development; this Skill provides precise commands, workflows, and guidance to navigate branching, merging, and history edits.

Core Features & Use Cases

  • Basic operations (add, commit, push, pull, fetch)
  • Branching and merging strategies, including rebasing vs merging
  • Conflict resolution, interactive rebase, and history rewriting
  • Cherry-picking, bisect, stashing, and worktrees
  • Submodules, hooks, and automation for Git workflows
  • Common rescues and safe undo patterns for mistakes

Quick Start

Describe a Git scenario (e.g., branching strategy, conflict resolution, or history rewriting) and I will provide the exact commands to execute along with explanations.

Frequently Asked Questions about Git Expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve merge conflicts in git without losing changes?

Resolve git merge conflicts by identifying conflicting files, editing the code to combine changes, staging the resolved files with git add, and committing the merge. This Skill provides exact commands alongside pre- and post-state checks to ensure no data is lost during conflict resolution.

What is the difference between git rebasing and merging for branch history?

Git rebasing rewrites branch history to maintain a linear project timeline, while merging preserves the complete historical branch topology. This Skill explains the purpose and side effects of each approach to help you choose the right branching and merging strategy.

Can I safely undo a git commit or rewrite history if I made a mistake?

Yes, you can safely undo git commits using common rescue and safe undo patterns. This Skill warns about destructive operations, suggests safe approaches for history rewriting, and outlines pre- and post-state checks to prevent accidental data loss.

How do I use git interactive rebase to squash multiple commits?

Use git interactive rebase to squash multiple commits by selecting a base commit, choosing squash for target commits, and saving the rebase todo list. This Skill provides step-by-step commands for interactive rebase and history rewriting workflows.

Does this git workflow guidance apply to both solo and team projects?

Yes, this git workflow guidance applies to daily development tasks across both solo and team projects. It covers branching strategies, cherry-picking, and stashing, providing precise commands and workflows tailored to your specific project scale and context.

What's the best way to manage git submodules and worktrees for parallel development?

Manage git submodules and worktrees by using specific commands to initialize nested repositories and link multiple working directories to a single repository. This Skill provides exact commands for submodules, hooks, and worktree automation to streamline parallel development.