Rebase the currently checked out feature branch onto the latest upstream default branch. Use when asked to update a branch with main or master, rebase the current branch onto the default branch, or sync a feature branch before review. Detects whether the repository uses main or master and guides safe conflict handling.
Install
npx skills add github/awesome-copilot --skill rebase-current-branchnpx skills add github/awesome-copilot --skill rebase-current-branch -a claude-code -gnpx skills add github/awesome-copilot --skill rebase-current-branch -a codex -ggemini skills install https://github.com/github/awesome-copilot.git --path skills/rebase-current-branchgh skill install github/awesome-copilot rebase-current-branchgit clone --depth 1 https://github.com/github/awesome-copilot /tmp/github__awesome-copilot
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/github__awesome-copilot/skills/rebase-current-branch ~/.claude/skills/rebase-current-branch # Claude Code
cp -R /tmp/github__awesome-copilot/skills/rebase-current-branch ~/.agents/skills/rebase-current-branch # Codex, Cursor, Gemini CLI, Copilot, OpenCode