localsetup-git-workflows

Automate Git workflows for rebasing, bisecting, worktrees, reflog recovery, and submodules across branches or monorepos.

3|2|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/cptnfren/localsetup --skill localsetup-git-workflows
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: localsetup-git-workflows
Source: https://github.com/cptnfren/localsetup/tree/main/_localsetup/skills/localsetup-git-workflows
Command: npx skills add https://github.com/cptnfren/localsetup --skill localsetup-git-workflows

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git workflows can be complex and error-prone for real-world projects. This skill provides structured guidance for rebasing, bisecting, worktrees, reflog recovery, and submodule/subtree management to stabilize development.

Core Features & Use Cases

  • Advanced git operations: interactive rebase, bisect, worktrees, reflog-based recovery, subtrees and submodules management, conflict resolution, cherry-picking across branches, and monorepo patterns.
  • Real-world scenarios: simplifying multi-branch work, recovering from mistakes, and coordinating parallel development across teams.

Quick Start

Run the Git Workflows guide on a sample repository to learn rebasing and conflict resolution.

Frequently Asked Questions about localsetup-git-workflows

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

FAQPage Schema
How do I perform an interactive rebase to clean up my git commit history?

Interactive rebase lets you reorder, squash, or edit commits to clean up git history before merging. This skill provides structured commands and safeguards to automate interactive rebase operations and resolve conflicts across multi-branch projects.

How does git bisect work for finding which commit introduced a bug?

Git bisect performs a binary search through your commit history to pinpoint the exact commit that introduced a regression. This skill automates the bisect workflow, guiding the process across branches to isolate defective code efficiently.

Can I use git worktrees for parallel development in a monorepo?

Git worktrees allow you to check out multiple branches simultaneously in separate directories, enabling parallel development within a monorepo. This skill provides guidance on setting up and managing worktrees to coordinate complex multi-branch workflows.

What's the best way to recover lost commits after a hard reset in git?

Reflog-based recovery is the best way to restore lost commits after accidental resets or branch deletions. This skill implements reflog recovery workflows to help you safely retrieve and restore dropped commits from your local git history.

How do I resolve merge conflicts when cherry-picking across branches?

Resolving merge conflicts during cherry-picking requires identifying conflicting changes and manually selecting the correct code segments. This skill provides structured guidance and safeguards for conflict resolution during cherry-picks and rebase operations.

Does this cover managing submodules and subtrees in complex projects?

Yes, this skill covers submodule and subtree management for complex projects. It provides structured guidance for integrating and coordinating external repositories, stabilizing development across monorepo and multi-branch environments.