One-click install
npx skills add https://github.com/tan-yong-sheng/cloudflare-image-mcp --skill git-advanced-workflows-tan-yong-sheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-advanced-workflows
Source: https://github.com/tan-yong-sheng/cloudflare-image-mcp/tree/main/.claude/skills/git-advanced-workflows
Command: npx skills add https://github.com/tan-yong-sheng/cloudflare-image-mcp --skill git-advanced-workflows-tan-yong-sheng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (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, squash, reword, and reorder commits using interactive rebase.
  • Selective Commit Application: Apply specific commits across branches with cherry-picking.
  • Bug Identification: Pinpoint the exact commit that introduced a bug using Git Bisect.
  • Parallel Development: Work on multiple branches simultaneously without context switching using worktrees.
  • Recovery: Utilize the reflog to recover lost commits or branches.
  • Use Case: Before submitting a pull request for a new feature, use this Skill 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 Git commit history before submitting a pull request?

To clean up your Git commit history before submitting a pull request, use interactive rebase to squash, reword, and reorder commits. This creates a clean, logical progression of changes that makes it easier for reviewers to understand and merge your code.

How does Git bisect work to pinpoint the exact commit that introduced a bug?

Git bisect works to pinpoint the exact commit that introduced a bug by using a binary search algorithm. You provide the last known good commit and the current bad commit, and Git automatically checks out intermediate commits to identify the source of the bug.

Can I recover a lost commit or deleted branch in Git?

You can recover a lost commit or deleted branch in Git by utilizing the reflog. The reflog records updates to the tip of branches, allowing you to reference and restore previous states of your repository that might otherwise seem lost.

What is the best way to work on multiple Git branches simultaneously without context switching?

The best way to work on multiple Git branches simultaneously without context switching is by using Git worktrees. Worktrees allow you to link multiple working directories to a single repository, enabling parallel development on different branches without stashing or committing current work.

How do I apply a specific commit from one branch to another using Git?

To apply a specific commit from one branch to another using Git, use the cherry-picking operation. Cherry-picking selectively applies the changes from a targeted commit onto your current working branch, facilitating selective commit application across branches.

Do I need any external dependencies to perform advanced Git operations like interactive rebase and cherry-picking?

You do not need any external dependencies to perform advanced Git operations like interactive rebase and cherry-picking. These features are built directly into the core version control system, allowing you to manage complex repository histories immediately.