rebase

Rebase the current Git branch onto the latest target branch with auto-stashing and fast-forward strategy.

Updated Jul 10, 2025
One-click install
npx skills add https://github.com/damilola-elegbede-org/claude-config-5ad01dbe --skill rebase-damilola-elegbede-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rebase
Source: https://github.com/damilola-elegbede-org/claude-config-5ad01dbe/tree/main/system-configs/.claude/skills/rebase
Command: npx skills add https://github.com/damilola-elegbede-org/claude-config-5ad01dbe --skill rebase-damilola-elegbede-org

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rebase current branches onto the latest version of a target branch, automatically preserving local work by stashing changes and applying upstream updates cleanly.

Core Features & Use Cases

  • Automatic stashing of uncommitted changes before rebasing to prevent loss of work.
  • Safe target-branch updates with fast-forward only to maintain a linear history.
  • Rebasing the active feature branch onto the updated target and providing clear guidance when conflicts arise.

Quick Start

Run /rebase to rebase your current branch on the latest target branch (default: main), with an optional target like /rebase develop.

Frequently Asked Questions about rebase

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

FAQPage Schema
How do I rebase my current branch onto the latest main branch without losing uncommitted changes?

To rebase safely, the Skill auto-stashes your uncommitted changes before rebasing your current branch onto the latest target branch, then restores the stash afterward to preserve your local work.

What is the safest way to update a feature branch with upstream changes?

The safest way to update a feature branch is using a fast-forward only rebase strategy, which applies upstream updates cleanly and maintains a linear history without forcing unnecessary merge commits.

How does conflict resolution work when rebasing a feature branch?

When rebasing a feature branch causes conflicts, the Skill pauses the operation, captures conflict metadata for auditing, and provides clear guidance on how to resolve the issues before continuing.

Can I rebase onto a branch other than main?

Yes, you can rebase onto a different target branch by specifying it as an option, allowing you to update your current feature branch against develop or any other upstream branch you choose.

Does rebasing with uncommitted local changes cause data loss?

Rebasing does not cause data loss here because the process automatically stashes uncommitted changes before applying the rebase operation, ensuring your local work is preserved and restored.

Why should I use a fast-forward only strategy for branch management?

A fast-forward only strategy for branch management ensures a linear history by applying upstream updates directly, avoiding complex merge commits and keeping the version control log clean and straightforward.