Rebase Master — Git skill for Claude Code
Fetch origin/master and rebase the current branch onto it.
How to install Rebase Master
Installs to ~/.claude/commands/dixus-claudeframework-rebase-master.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/dixus/claudeframework/HEAD/.claude/commands/rebase-master.md -o ~/.claude/commands/dixus-claudeframework-rebase-master.md Restart Claude Code, or start a new session, for it to be picked up.
What Rebase Master does
description: Fetch origin/master and rebase the current branch onto it
Rebase the current branch onto the latest `origin/master`:
- Run
git fetch origin masterto get the latest master. - Check for uncommitted changes with
git status --short. If there are any, stash them withgit stash push -m "auto-stash before rebase". - Run
git rebase origin/master. - If there are merge conflicts:
- Show the conflicted files.
- For each conflict, read the file, resolve it by keepin
Alternatives in Git
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Git Master 24.1k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Git Rebase
Rebases onto origin/main (or origin/master) and resolves conflicts
Rebase On Main
Rebase the current branch on origin/main and resolve any conflicts.
Fr
Fetch from remote and rebase current branch onto the remote branch
Rebase PR
Use when: rebasing a PR branch onto main and the rebase produces conflicts. Triggers on: rebase origin/main, r
Safe Pull
安全地從 origin/main 拉取最新內容到本機,自動 stash 本地未 commit 的修改,rebase 完成後再還原
Rebase
Rebase current branch onto a feature branch
Related Agents
Branch Master Docs Checker
Checks the work of the current branch against the project's master docs to ensure it is aligned with them.
Flow Git
Use this agent for git operations — atomic commits, rebase, history cleanup, and style detection. Flow detects
Gitnexus Branch Hygiene Reviewer
GitNexus branch hygiene and mergeability reviewer. Use to classify merge state, conflicts, stale branches, mer