git-advanced-workflows

Rebase, cherry-pick, bisect, and restore Git history with command-level procedures.

31|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/citum/citum-core --skill git-advanced-workflows-citum
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced-workflows
Source: https://github.com/citum/citum-core/tree/main/.claude/skills/git-advanced-workflows
Command: npx skills add https://github.com/citum/citum-core --skill git-advanced-workflows-citum

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you clean up complex Git history, apply the right commits to the right branches, and recover when something goes wrong, so you can move forward with confidence instead of getting stuck.

Core Features & Use Cases

  • Interactive rebase for history cleanup: squash, fixup, reorder, reword, edit, and drop commits to produce a clean, reviewable branch history (e.g., preparing PRs with a tidy commit sequence).
  • Cherry-picking for targeted changes: move specific commits (or ranges) across branches without merging entire branches (e.g., backporting a hotfix commit to multiple release lines).
  • Bisect and reflog for troubleshooting and recovery: use bisect to find the commit that introduced a bug and use reflog to recover deleted commits/branches after risky operations (e.g., locating the regression point and restoring lost work).

Quick Start

Run interactive rebase on your branch with git rebase -i main to clean up commits before opening a pull request.

Frequently Asked Questions about git-advanced-workflows

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

FAQPage Schema
How do I clean up a messy git branch before opening a pull request?

Use interactive rebase to clean up a messy git branch by squashing, fixup, rewording, reordering, editing, or dropping commits to produce a tidy and reviewable commit sequence before opening your pull request.

How do I backport a hotfix commit to multiple release branches in git?

Backport a hotfix commit to multiple release branches by cherry-picking specific commits or commit ranges across branches without merging entire branches, ensuring targeted changes reach the right release lines.

How do I find which commit introduced a regression in my git repository?

Find the commit that introduced a regression in your git repository by using git bisect with good and bad marking, including automating the bisect process via run scripts to locate the exact bug introduction point.

Can I recover a deleted branch or lost commits after a failed git rebase?

Recover deleted branches or lost commits after a failed git rebase by using git reflog to trace historical HEAD movements and restore your repository state to a prior safe checkpoint.

What is the best way to work on multiple git branches simultaneously without cloning twice?

Use git worktrees to work on multiple branches simultaneously without cloning twice, managing separate working directories linked to the same repository for parallel feature or release work.

When should I avoid rewriting git history with interactive rebase?

Avoid rewriting git history with interactive rebase on shared branches that other collaborators have already pulled, as rebasing published commits creates divergent histories and requires forced pushes that disrupt team workflows.