This is for when basic git commands aren't cutting it anymore and you need to rewrite history, split commits, or handle complex rebases. It covers interactive rebase workflows including squashing and fixup commits, cherry-picking across branches with mainline selection for merge commits, and commit surgery like changing authors or removing files from history. The source includes practical examples of filter-branch and BFG Repo-Cleaner for cleanup work. Honestly, these are the operations you hope you don't need often, but when you do, having the syntax and flag combinations ready saves a lot of frantic Stack Overflow searching. Just remember to coordinate with your team before force-pushing any history rewrites.

skills.sh installs
324
GitHub stars
8
last updated
Aug 21, 2026

Install

$ npx -y skills add geoffjay/claude-plugins --skill git-advanced --agent claude-code

Installs into .claude/skills of the current project.

Files

Git Advanced Operations Skill

This skill provides comprehensive guidance on advanced git operations, sophisticated rebase strategies, commit surgery techniques, and complex history manipulation for experienced git users.

When to Use

Activate this skill when:

  • Performing complex interactive rebases
  • Rewriting commit history
  • Splitting or combining commits
  • Advanced merge strategies
  • Cherry-picking across branches
  • Commit message editing in history
  • Author information changes
  • Complex conflict resolution

Interactive Rebase Strategies

Basic Interactive Rebase

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

# Rebase from specific commit
git rebase -i abc123^

# Rebase entire branch
git rebase -i main

Rebase Commands

# Interactive rebase editor commands:
# p, pick = use commit
# r, reword = use commit, but edit commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like squash, but discard commit message
# x, exec = run command (the rest of the line) using shell
# d, drop = remove commit

Squashing Commits

Sponsors

Details

Repository
github.com/geoffjay/claude-plugins
Category
Git & Pull Requests
First seen
Jun 3, 2026

More from geoffjay/claude-plugins

All 3
1odyssey4me avatargitlabodyssey4me/agent-skillsCreate and manage GitLab issues, merge requests, pipelines, and repositories using the glab CLI. Use when asked to open an MR, review a merge request, check CI/303skills.sh installs
2hairyf avatargithub-workflowhairyf/skillsStandard flow from any task source (link or description) to creating a PR: resolve task, create branch and TODO.md, delegate fix to SubAgent (TODO.md), then com298skills.sh installs
3casper-studios avatarpr-commentscasper-studios/casper-marketplaceTriage unresolved PR review comments, produce a severity-ordered fix plan, then resolve or fix each issue with subagents. Use when addressing PR feedback before296skills.sh installs
4davila7 avatarcommit-workdavila7/claude-code-templatesCreate high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Us290skills.sh installs
5paperclipai avatarpr-reportpaperclipai/paperclipProduce a maintainer-grade PR or contribution report as HTML or Markdown. Use when asked to deeply review a PR, explain a design, compare systems, or prepare a 269skills.sh installs
6patricio0312rev avatargit-hygiene-enforcerpatricio0312rev/skillsEstablishes git workflow guardrails including conventional commits, commit message hooks, branch naming conventions, PR templates, and code review processes. Pr267skills.sh installs