git-advanced-workflows

Automate Git rebasing, cherry-picking, bisect, worktrees, and reflog recovery.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/GanaF4ll/agentic-ai-tp --skill git-advanced-workflows-ganaf4ll
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced-workflows
Source: https://github.com/GanaF4ll/agentic-ai-tp/tree/main/.agents/skills/git-advanced-workflows
Command: npx skills add https://github.com/GanaF4ll/agentic-ai-tp --skill git-advanced-workflows-ganaf4ll

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Managing complex Git histories and workflows often leads to messy commits, accidental losses of work, and time-consuming history rewrites. This Skill provides structured guidance and techniques to keep history clean, recover from mistakes, and coordinate multi-branch workstreams.

Core Features & Use Cases

  • Interactive rebasing and history reorganization to squash or reorder commits for PR-ready history.
  • Cross-branch operations such as cherry-picking, bisect, and worktree management to enable multi-feature development and hotfix recovery.
  • Reflog-based recovery and safe rollback workflows to restore lost commits or branches after mistakes.

Quick Start

Start by identifying the feature or fix you want to isolate, then apply an interactive rebase onto the target base to craft a clean history and push with a safe strategy.

Frequently Asked Questions about git-advanced-workflows

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

FAQPage Schema
How do I recover lost commits after a hard reset or accidental branch deletion in Git?

Git reflog recovery allows you to restore lost commits or branches after mistakes. You can use reflog operations to trace dangling commits and safely roll back your repository state to a previous working snapshot.

What is the best way to squash or reorder commits before creating a pull request?

Interactive rebasing is the best way to squash or reorder commits for a PR-ready history. It reorganizes your commit history by applying your feature branch changes onto a target base while providing safe guidance for conflict resolution.

How do I use Git bisect to find which commit introduced a regression across feature and release branches?

Git bisect automates regression isolation by binary searching through your commit history. It systematically checks out commits across feature and release branches to pinpoint the exact change that introduced the bug.

Can I manage multiple working directories for different branches without cloning the repository multiple times?

Git worktree management enables multi-feature development by attaching multiple working directories to a single repository. This allows you to work on hotfix recovery and feature branches simultaneously without redundant local clones.

How do I safely apply a specific commit from one branch to another without merging the entire history?

Cherry-picking applies a specific commit from one branch to another without merging the entire history. It extracts the targeted changes and applies them to your current branch, with safe guidance for resolving any resulting conflicts.

When should I avoid non-destructive history rewrites in my version control workflow?

You should avoid non-destructive history rewrites on shared branches that other developers actively track. Rewriting history on shared streams can cause divergent commit trees, so limit interactive rebasing to local or pre-push feature branches.