git-advanced

Execute advanced git operations for rebasing, bisecting, cherry-picking, and conflict resolution.

395|84|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/bybren-llc/wtfb-safe-agentic-workflow --skill git-advanced-bybren-llc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced
Source: https://github.com/bybren-llc/wtfb-safe-agentic-workflow/tree/main/.claude/skills/git-advanced
Command: npx skills add https://github.com/bybren-llc/wtfb-safe-agentic-workflow --skill git-advanced-bybren-llc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Advanced Git operations including rebase, bisect, cherry-pick, and conflict resolution. This project uses a rebase-first workflow with linear history—understand these patterns to avoid breaking the codebase.

Core Features & Use Cases

  • Rebase Workflow: before PR
  • Bisect: locate bugs
  • Cherry-Pick: selective commits
  • Conflict Resolution: merge conflicts
  • Recovery Commands: undo operations

Quick Start

Perform a rebase onto dev, then push with force-with-lease; resolve any conflicts if they arise.

Frequently Asked Questions about git-advanced

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

FAQPage Schema
How do I rebase a feature branch onto dev before creating a pull request?

Rebasing rewrites your branch history on top of dev, creating a linear commit sequence. Run `git rebase dev` on your feature branch, resolve any conflicts, then push with `git push --force-with-lease` to update the remote without overwriting others' work.

What's the best way to find which commit introduced a bug?

Git bisect automates binary search through your commit history to isolate the breaking change. Run `git bisect start`, mark a known-bad and known-good commit, then test each midpoint until bisect identifies the exact commit that caused the bug.

How do I move specific commits from one branch to another?

Cherry-pick selectively applies individual commits to your current branch without merging the entire source branch. Use `git cherry-pick <commit-hash>` to copy a commit, or cherry-pick a range to apply multiple commits in sequence to a different branch.

How should I resolve merge conflicts when rebasing?

Merge conflicts during rebase occur when changes overlap. Edit conflicted files to remove conflict markers, stage the resolved files with `git add`, then continue the rebase with `git rebase --continue` until all conflicts are resolved.

Can I undo a rebase or recover from a git mistake?

Git reflog tracks all branch movements, including failed rebases. Use `git reflog` to find the previous state, then `git reset --hard <ref>` to recover your branch. Force-with-lease prevents accidental overwrites of shared commits on protected branches.

Why should I use a rebase-first workflow instead of merge commits?

Rebase-first maintains linear history, making bisect searches faster and logs easier to read. Merge commits create branches in history that obscure the sequence of changes; a linear history with rebased feature branches preserves a clean, traceable development timeline.