mp-rebase

Rebase or merge a target branch into the current branch with conflict handling.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/MartinoPolo/mpx-claude-code --skill mp-rebase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mp-rebase
Source: https://github.com/MartinoPolo/mpx-claude-code/tree/main/_archive/skills-deprecated/mp-rebase
Command: npx skills add https://github.com/MartinoPolo/mpx-claude-code --skill mp-rebase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you integrate changes from another branch into your current branch by automatically choosing rebase or merge and handling the common failure points that cause conflicts or broken histories.

Core Features & Use Cases

  • Argument-driven rebase vs merge: Defaults to rebase, but switches to merge mode when requested or when the rebase appears too large.
  • Branch detection and sync checks: Detects the target branch (or asks you to choose), verifies a clean working tree, and checks ahead/behind/divergence with the remote tracking branch.
  • Conflict-aware resolution workflow: Detects conflicted files, guides you through resolving simple vs complex conflicts, and continues the operation (rebase continue / merge commit).

Use case: You want to “rebase on main” after a long-lived work branch has drifted, without accidentally rebasing with local changes or getting surprised by divergence and large commit sets.

Quick Start

Ask it to rebase your current branch onto a target branch named main using rebase mode.

Frequently Asked Questions about mp-rebase

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

FAQPage Schema
When should I choose git merge instead of git rebase for branch synchronization?

When resolving merge conflicts during branch synchronization, the workflow detects conflicted files and guides you through resolving simple versus complex conflicts. It then executes git rebase continue or creates a merge commit to finalize the operation.

How do I resolve merge conflicts interactively during a branch rebase?

When resolving merge conflicts during a branch rebase, the workflow detects conflicted files and guides you through resolving simple versus complex conflicts. It then executes git rebase continue or creates a merge commit to finalize the operation.

Do I need a clean working tree before updating a feature branch with main changes?

Yes, you need a clean working tree before updating a feature branch. The workflow verifies your working tree is clean and checks ahead/behind divergence with the remote tracking branch before performing any merge or rebase operations.

What is the best way to integrate changes from another branch into my current git branch?

The best way to integrate changes is to use an argument-driven workflow that fetches remote refs, detects the target branch, and evaluates branch divergence. It automatically chooses between git merge and git rebase based on the size of the divergence to ensure safe branch synchronization.