git-advanced-workflows

Guide advanced Git operations for rebasing, cherry-picking, bisect, worktrees, and reflog.

Updated Sep 10, 2025
One-click install
npx skills add https://github.com/cuoreinpace/bdeornelas.github.io --skill git-advanced-workflows-cuoreinpace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced-workflows
Source: https://github.com/cuoreinpace/bdeornelas.github.io/tree/main/plugins/developer-essentials/skills/git-advanced-workflows
Command: npx skills add https://github.com/cuoreinpace/bdeornelas.github.io --skill git-advanced-workflows-cuoreinpace

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill empowers users to manage complex Git histories, recover from mistakes, and maintain a clean, understandable repository.

Core Features & Use Cases

  • History Rewriting: Safely reorder, squash, reword, and edit commits using interactive rebase.
  • Selective Commits: Apply specific commits across branches with cherry-picking.
  • Bug Finding: Efficiently locate the commit that introduced a bug using git bisect.
  • Parallel Work: Manage multiple branches simultaneously without context switching using worktrees.
  • Recovery: Utilize git reflog to recover lost commits or branches.
  • Use Case: Before submitting a large feature branch for review, use interactive rebase to clean up commit messages, squash minor fixes, and ensure a linear, logical history.

Quick Start

Use the git-advanced-workflows skill to rebase the last 5 commits interactively.

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 or a deleted branch in Git?

Recover lost commits or deleted branches using git reflog, which records reference updates and lets you checkout or reset to previous states. This ensures robust recovery from accidental data loss.

How do I clean up and squash commits before submitting a feature branch?

Clean up and squash commits using interactive rebase to safely reorder, reword, or combine them. This ensures a linear, logical history before submitting your feature branch for review.

What is the best way to find which commit introduced a bug in my repository?

Find the commit that introduced a bug using git bisect. It efficiently narrows down the problematic commit through binary search, enabling rapid bug finding in complex repository histories.

Can I work on multiple Git branches simultaneously without context switching?

Work on multiple branches simultaneously using git worktrees. This allows you to manage parallel work by checking out different branches into separate directories without local context switching.

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

Apply specific commits across branches using git cherry-picking. This selectively integrates changes from one branch to another, ensuring precise selective commits without merging entire histories.

Does this Git workflow guidance support managing complex repository histories?

Yes, this guidance supports managing complex repository histories by providing advanced operations like interactive rebase and cherry-picking. It ensures clean commit histories and robust version control.