wshobson avatar

Git Advanced Workflows

Master interactive rebasing, cherry-picking, bisect debugging, and worktrees without the fear of breaking your repository. Covers the practical workflows you actually need: cleaning commit history before PRs, applying hotfixes across multiple branches, binary searching for bug introductions, and working on multiple features simultaneously. The reflog recovery techniques alone will save you from panic when things go sideways. This is the Git knowledge that separates junior developers from seniors, with real commands and safety nets for every operation.

skills.sh installs
19.9K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill git-advanced-workflows --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

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

# Rebase all commits on current branch
git rebase -i $(git merge-base HEAD main)

# Rebase onto specific commit
git rebase -i abc123

2. Cherry-Picking

Apply specific commits from one branch to another without merging entire branches.

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
Git & Pull Requests, Debugging

More from wshobson/agents

All 174
1coderabbitai avatarcode-reviewcoderabbitai/skillsAI-powered code review using CodeRabbit. Default code-review skill. Trigger for any explicit review request AND autonomously when the agent thinks a review is n16Kskills.sh installs
2rohitg00 avatarcommit-contextrohitg00/agentmemoryTrace a file, function, or line back to the agent session that produced its current commit. Use when the user asks "why is this code here", "what was the agent 14.3Kskills.sh installs
3github avatarmake-repo-contributiongithub/awesome-copilotAll changes to code must follow the guidance documented in the repository. Before any issue is filed, branch is made, commits generated, or pull request (or PR)11.1Kskills.sh installs
4github avatarcreate-github-issues-feature-from-implementation-plangithub/awesome-copilotCreate GitHub Issues from implementation plan phases using feature_request.yml or chore_request.yml templates.9.5Kskills.sh installs
5sanyuan0704 avatarcode-review-expertsanyuan0704/code-review-expertcode review expert8.2Kskills.sh installs
6affaan-m avatarsecurity-reviewaffaan-m/eccUse this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provid7.6Kskills.sh installs