Skip to content
Skills Library
Programming · Automation

rebase-all

/rebase-all

Rebase all local branches onto the configured upstream branch. Use when the user asks to rebase every branch or bring all branches up to date.

Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

91/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content26 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Rebase all local branches onto the configured upstream branch. Use when the user asks to rebase every branch or bring all branches up to date.

Original author description

Rebase all local branches onto the configured upstream branch. Use when the user asks to rebase every branch or bring all branches up to date.

How it works

SKILL.md has no level-two headings · 22 lines, 169 words

SKILL.md preview
---
name: rebase-all
description: Rebase all local branches onto the configured upstream branch. Use when the user asks to rebase every branch or bring all branches up to date.
---

# Rebase All

Resolve `<plugin-root>` before running plugin scripts:

- In Claude Code, use `${CLAUDE_PLUGIN_ROOT}`.
- In Codex, use the plugin root that contains this `skills/rebase-all/SKILL.md` file.

Run:

```bash
<plugin-root>/scripts/rebase-all
```

The script first runs `replay-all`, which moves every branch that replays cleanly without checking it out, then rebases only the branches replay left behind.

It reads `UPSTREAM_REMOTE`, which defaults to `upstream`. When the repository has no `upstream` remote, pass `UPSTREAM_REMOTE=origin`, and suggest adding `export UPSTREAM_REMOTE=origin` to the project's `.envrc`.

If it stops on merge conflicts, resolve them in the affected branch with the `git:conflicts` skill, then run the script again. Repeat until it completes without errors or conflicts, naming the branch you're on and summarizing the conflicts after each pass.

Once every branch is rebased, offer to clean up merged branches with `<plugin-root>/scripts/delete-merged`. It deletes local branches merged into upstream main and also runs `git push --delete origin` for merged remote branches, so it is outward-facing. Ask the user before running it, and skip it if they decline.

Versions

The database has no other skills named rebase-all.

Database snapshot: 13.11.2026 · package version 35e91b9738e0 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100rebase
    Rebases the current feature branch onto the base branch (main/master/develop). Use when the user says "rebase", "sync branch", or "update branch".
  • 100rebase-downstream
    Rebase a tree of dependent branches (including siblings) after upstream changes. Auto-detects downstream branches and rebases each in order. Triggers on: rebase downstream, rebase chain, propagate changes downstream.
  • 100rebase
    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.
  • 100rebase
    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.
  • 90rebase-pr
    Rebase a PR branch onto main. Handles merge commits, conflicts (auto-resolve when possible), linting, force push. Use when user says "rebase", "rebase PR", "rebase branch".
  • 100rebase-branch
    Fetch a base branch (the default branch, unless another is named, such as develop) and rebase the current branch onto it, keeping uncommitted work exactly as it was — staged stays staged, unstaged stays unstaged, untracked files stay. Use when the user wants to update or sync…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.