git-advanced

Automate Git history fixes using rebase, cherry-pick, and bisect workflows.

2|Updated Aug 15, 2022
One-click install
npx skills add https://github.com/Knuckles-Team/repository-manager --skill git-advanced-knuckles-team
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced
Source: https://github.com/Knuckles-Team/repository-manager/tree/main/repository_manager/skills/git-advanced
Command: npx skills add https://github.com/Knuckles-Team/repository-manager --skill git-advanced-knuckles-team

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Advanced Git history manipulation for troubleshooting, enabling targeted rewrites and precise recoveries.

Core Features & Use Cases

  • Supports rebase, cherry-pick, and bisect workflows to pinpoint and fix issues in complex histories.
  • Provides structured guidance for troubleshooting and safe conflict resolution.
  • Use cases include isolating bad commits, rewriting history for clean merges, and auditing changes.

Quick Start

Execute an advanced git operation such as rebase, cherry-pick, or bisect on a target branch.

Frequently Asked Questions about git-advanced

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

FAQPage Schema
How do I use git bisect to isolate a faulty commit in a large history?

Git bisect isolates faulty commits by performing a binary search through your project history. You start the bisect workflow, mark commits as good or bad, and the system automatically checks out intermediate commits to pinpoint the exact change that introduced the bug.

What is the best way to rewrite git history for clean merges across divergent branches?

Git rebase is the best way to rewrite history for clean merges. It replays your local commits onto a target branch, allowing you to resolve conflicts interactively and maintain a linear, auditable project history without messy merge commits.

How do I apply a specific commit from one branch to another using cherry-pick?

Git cherry-pick applies a specific commit from one branch to another by extracting the diff introduced in that commit. You identify the target commit hash and execute the cherry-pick command to apply those isolated changes to your current working branch.

How do I resolve conflicts during a complex rebase or cherry-pick workflow?

To resolve conflicts during rebase or cherry-pick, you manually fix the conflicting files in your working directory. After editing, stage the resolved files and continue the workflow to proceed with applying the remaining commits in the sequence.

When should I avoid rewriting git history in a shared repository?

You should avoid rewriting git history with rebase on commits that have already been pushed to a shared remote repository. Altering shared history causes divergent timelines for collaborators, leading to severe merge conflicts and lost work when they attempt to synchronize.