Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    heyayushh

    rebase

    heyayushh/rebase
    DevOps

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Rebase the current branch with flexible target options. Use when you need to rebase on main, a specific branch, or a remote branch, with intelligent conflict handling.

    SKILL.md

    Rebase

    Rebase the current branch.

    Arguments

    • No arguments: rebase on local main
    • origin: fetch origin, rebase on origin/main
    • origin/branch: fetch origin, rebase on origin/branch
    • branch: rebase on local branch

    Steps

    1. Parse arguments

      • No args → target is "main", no fetch
      • Contains "/" (e.g., "origin/develop") → split into remote and branch, fetch remote, target is remote/branch
      • Just "origin" → fetch origin, target is "origin/main"
      • Anything else → target is that branch name, no fetch
    2. Fetch if needed

      git fetch <remote>
      
    3. Rebase

      git rebase <target>
      
    4. Handle conflicts (if any)

    5. Continue until complete

    Handling Conflicts

    • BEFORE resolving any conflict, understand changes made to each conflicting file in the target branch
    • For each conflicting file:
      git log -p -n 3 <target> -- <file>
      
    • Goal: preserve BOTH target branch changes AND our branch's changes
    • After resolving each conflict:
      git add <file>
      git rebase --continue
      
    • If a conflict is too complex or unclear, ask for guidance before proceeding
    Recommended Servers
    Gitlab
    Gitlab
    Neon
    Neon
    Bitbucket
    Bitbucket
    Repository
    heyayushh/stacc
    Files