$ skilldirectory
— zsh — registry.skilldirectory.dev
skill library blog

home / Coding / Git Advanced Workflows Skill by @wshobson

Git Advanced Workflows Skill by @wshobson

FREE
github stars★ 42,243updatedOct 2026repo@wshobson
$git clone https://github.com/wshobson/agents

The skill is the plugins/developer-essentials/skills/git-advanced-workflows folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.

Read the opening of the original SKILL.md
# Git Advanced Workflows

Master advanced Git techniques to maintain clean history, collaborate effectively, and recover from any situation with confidence.

## When to Use This Skill

- Cleaning up commit history before merging
- Applying specific commits across branches
- Finding commits that introduced bugs
- Working on multiple features simultaneously
- Recovering from Git mistakes or lost commits
- Managing complex branch workflows
- Preparing clean PRs for review
- Synchronizing diverged branches

## Core Concepts

### 1. Interactive Rebase

Interactive rebase is the Swiss Army knife of Git history editing.

**Common Operations:**

- `pick`: Keep commit as-is
- `reword`: Change commit message
- `edit`: Amend commit content
- `squash`: Combine with previous commit
- `fixup`: Like squash but discard message
- `drop`: Remove commit entirely

**Basic Usage:**

```bash
# Rebase last 5 commits
git rebase -i HEAD~5

# Rebase all commits on current branch
…

Excerpt only, quoted from the author's repository. Open the repository for the complete file.