github/awesome-copilot · rebase-current-branch · SKILL.md
变基当前分支
将当前检出的功能分支变基到最新的上游默认分支。当被要求用 main 或 master 更新分支、将当前分支变基到默认分支,或在评审前同步功能分支时使用。检测仓库使用的是 main 还是 master,并指导安全的冲突处理。
这是公开 Agent Skill 的中文说明,由采集翻译或编辑润色,完整内容以上游 SKILL.md 为准。适用于 Cursor / Claude Code / Codex / Gemini。 打开上游 SKILL.md
安装
通用(npx skills)
npx skills add github/awesome-copilot -s rebase-current-branch
Cursor
把该 Skill 复制到项目的 .cursor/skills/rebase-current-branch/ 目录
Claude Code
npx skills add github/awesome-copilot -a claude-code -s rebase-current-branch