git-workflows

Resolve advanced Git workflow issues with sequential commands and recovery patterns.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/billyfranklim1/claude-skills --skill git-workflows-billyfranklim1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflows
Source: https://github.com/billyfranklim1/claude-skills/tree/main/plugins/git-workflows/skills/git-workflows
Command: npx skills add https://github.com/billyfranklim1/claude-skills --skill git-workflows-billyfranklim1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides clear, actionable guidance for advanced Git state and workflow issues so developers can safely manipulate history, recover lost work, and resolve complex merge scenarios without making problems worse.

Core Features & Use Cases

  • Interactive rebase guidance for squashing, rewording, editing, and autosquash workflows to produce a clean history.
  • Bisect and investigation patterns to locate regressions using automated test runs.
  • Worktree and stash patterns for parallel feature work, hotfixes, and preserving WIP changes.
  • Reflog-based recovery and branch reconstruction to restore lost commits and recover from accidental resets.
  • Cherry-pick, tagging, and release management for applying specific commits across branches and preparing releases.
  • Conflict resolution tips and best practices to minimize risk when resolving merge conflicts and collaborating on shared branches.

Quick Start

Use the git-workflows skill to get step-by-step commands and guidance to perform an interactive rebase and safely recover a lost commit.

Frequently Asked Questions about git-workflows

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

FAQPage Schema
How do I recover lost commits after an accidental git reset?

Recover lost commits after an accidental git reset by using the reflog to identify the previous HEAD state and running git reset --hard <reflog-hash> to restore the branch pointer to the recovered commit.

How to resolve merge conflicts during an interactive rebase?

Resolve merge conflicts during an interactive rebase by manually editing the conflicted files, staging them with git add, and continuing the rebase sequence with git rebase --continue to safely clean up history.

What is the best way to locate a regression using git bisect?

Locate a regression using git bisect by marking known good and bad commits, letting Git binary search the history, and running automated test scripts at each step to isolate the exact commit that introduced the bug.

When do I need to use git worktree for parallel development?

Use git worktree for parallel development when you need to maintain a hotfix branch or run CI-related bisects without stashing your current work, allowing multiple working directories to share a single repository.

Can I cherry-pick specific commits across branches without merging?

Cherry-pick specific commits across branches without merging by applying the target commit hash directly onto your current branch using git cherry-pick, which is ideal for hotfix creation and applying isolated changes.

How do I safely clean up Git history without force-pushing shared branches?

Safely clean up Git history without force-pushing shared branches by performing interactive rebase operations locally, using squash and reword to organize commits, and avoiding force-push on protected remote branches to prevent overwriting team work.