git-advanced-workflows

Guide advanced Git operations including interactive rebase, cherry-picking, bisect, worktrees, and reflog.

1|Updated Jun 18, 2025
One-click install
npx skills add https://github.com/knopki/dotfiles --skill git-advanced-workflows-knopki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced-workflows
Source: https://github.com/knopki/dotfiles/tree/main/home/private_dot_config/opencode/skills/git-advanced-workflows
Command: npx skills add https://github.com/knopki/dotfiles --skill git-advanced-workflows-knopki

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 collaborate more effectively by mastering advanced Git commands and workflows.

Core Features & Use Cases

  • History Rewriting: Clean up commit messages, reorder, squash, or split 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 Development: Work on multiple branches simultaneously without context switching using git worktrees.
  • Recovery: Utilize git reflog to recover lost commits or branches.
  • Use Case: Before submitting a pull request for a large feature, use interactive rebase to clean up your commit history, making it easier for reviewers to understand and merge.

Quick Start

Use the git-advanced-workflows skill to clean up the last 5 commits on your current branch using interactive rebase.

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 my commit history before submitting a pull request?

Git bisect finds the specific commit that introduced a bug by using a binary search algorithm across your commit history. It efficiently isolates regressions by automatically checking out commits to identify the exact failure point.

How do I recover a lost commit or branch in Git?

Git worktrees enable parallel development by allowing you to attach multiple working directories to a single repository. This lets you work on different branches simultaneously without needing to context switch or stash changes.

What is the best way to apply a specific commit to another branch?

The best way to apply a specific commit to another branch is cherry-picking. This operation duplicates the changes from a selected commit and applies them to your current branch, facilitating selective feature integration.

Do I need to understand the command line to use advanced Git workflows?

Yes, you need a solid understanding of the Git command-line interface and repository management principles to execute advanced operations like interactive rebase, cherry-picking, bisect, worktrees, and reflog recovery.