git-advanced-workflows

Guide advanced Git operations like interactive rebase, cherry-picking, and bisect.

38.6k|4.1k|Updated Jul 24, 2025
One-click install
npx skills add https://github.com/wshobson/agents --skill git-advanced-workflows-wshobson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced-workflows
Source: https://github.com/wshobson/agents/tree/main/plugins/developer-essentials/skills/git-advanced-workflows
Command: npx skills add https://github.com/wshobson/agents --skill git-advanced-workflows-wshobson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to manage complex Git histories, recover from mistakes, and maintain a clean, understandable repository by mastering advanced Git commands and workflows.

Core Features & Use Cases

  • Interactive Rebase: Edit, reorder, squash, or drop commits for a clean history.
  • Cherry-Picking: Apply specific commits across branches.
  • Git Bisect: Efficiently find the commit that introduced a bug.
  • Worktrees: Work on multiple branches simultaneously without context switching.
  • Reflog: Recover lost commits and branches.
  • Use Case: You've made several messy commits on a feature branch and need to clean them up before creating a Pull Request. Use interactive rebase to squash, reword, and reorder your commits into a logical sequence.

Quick Start

Use the git-advanced-workflows skill to clean up the last 5 commits on your current branch using interactive rebase.

Frequently Asked Questions about git-advanced-workflows

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

FAQPage Schema
How do I squash and reorder commits using interactive rebase?

Interactive rebase allows you to clean up commit history by editing, rewording, reordering, squashing, or dropping commits into a logical sequence before creating a pull request.

What is git reflog used for in version control?

Git reflog records reference updates to help you recover lost commits and branches, providing robust error recovery when complex history manipulation goes wrong.

How do I find the specific commit that introduced a bug?

Git bisect efficiently isolates bugs by systematically checking out commits, helping you pinpoint the exact change in your repository history that introduced the issue.

Can I work on multiple git branches simultaneously without stashing changes?

Git worktrees allow you to work on multiple branches simultaneously without context switching or stashing, enabling parallel development within separate working directories.

What is the best way to apply specific commits from one branch to another?

Cherry-picking applies specific commits across branches, allowing you to selectively move changes without merging an entire branch history into your current version control workflow.