git-rebase-sync by 0xbigboss/claude-code
npx skills add https://github.com/0xbigboss/claude-code --skill git-rebase-sync当你需要通过 git rebase 将功能分支同步到最新的 origin/{base_branch} 时,请使用此技能,包括在意图不明确时通过明确澄清问题进行冲突解决。
dev 或 main)。git rebase ...、git push --force*)之前,打印你将运行的确切命令并等待我的确认。git push --force-with-lease,绝不使用普通的 --force。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
git branch --show-currentgh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'git fetch origingit statusgit status 显示有正在进行的合并/变基/拣选操作,请停止并询问如何处理(中止还是继续)。HEAD 处创建一个带注释的标签:
git tag -a {branch_name}-rebase-backup-$(date +%Y%m%d-%H%M%S) -m "pre-rebase backup" HEAD{backup_ref} 以供恢复。git rev-list --count --merges origin/{base_branch}..HEAD--rebase-merges)还是扁平化它们(普通变基)。git rebase origin/{base_branch}git rebase --rebase-merges origin/{base_branch}当发生冲突时:
git statusgit add <file...>git rebase --continue冲突期间有用的命令:
git diffgit showgit rebase --abort(这是安全的,应优先于破坏性重置使用)git log --oneline --decorate origin/{base_branch}..HEADgit push --force-with-lease origin HEAD:{branch_name}{backup_ref} 来恢复变基前的状态。git reset --hard),除非在我确认你显示的确切命令之后。每周安装次数
54
仓库
GitHub 星标数
37
首次出现
2026年2月13日
安全审计
安装于
codex47
cursor44
gemini-cli44
github-copilot44
opencode44
claude-code43
Use this skill when you need to sync a feature branch onto the latest origin/{base_branch} via git rebase , including conflict resolution with explicit clarification questions when intent is ambiguous.
dev or main).git rebase ..., git push --force*), print the exact command(s) you will run and wait for my confirmation.git push --force-with-lease, never plain --force.git branch --show-currentgh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'git fetch origingit statusgit status indicates an in-progress merge/rebase/cherry-pick, stop and ask what to do (abort vs continue).HEAD:
git tag -a {branch_name}-rebase-backup-$(date +%Y%m%d-%H%M%S) -m "pre-rebase backup" HEAD{backup_ref} for recovery.git rev-list --count --merges origin/{base_branch}..HEAD--rebase-merges) or flatten them (plain rebase).git rebase origin/{base_branch}git rebase --rebase-merges origin/{base_branch}When conflicts happen:
git statusgit add <file...>git rebase --continueHelpful commands during conflicts:
git diffgit showgit rebase --abort (this is safe and should be preferred over destructive resets)git log --oneline --decorate origin/{base_branch}..HEADgit push --force-with-lease origin HEAD:{branch_name}{backup_ref} to restore the pre-rebase state.git reset --hard) unless I explicitly confirm after you show the exact command.Weekly Installs
54
Repository
GitHub Stars
37
First Seen
Feb 13, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
codex47
cursor44
gemini-cli44
github-copilot44
opencode44
claude-code43
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
166,500 周安装
基础设施成本优化指南:AWS与Kubernetes云成本降低、资源利用率优化
155 周安装
市场顶部探测器 - 量化评分系统,预测2-8周市场调整概率 | O'Neil/Minervini/Monty方法
158 周安装
深度阅读分析师:10+思维框架系统分析,将浅读变深度学习,提升理解与应用能力
154 周安装
Godot 4 GDScript 设计模式与最佳实践 | 游戏开发架构、信号、场景优化指南
157 周安装
AI故障排除指南:结构化文档模板与最佳实践,快速诊断常见技术问题
156 周安装
性能分析与优化指南:识别瓶颈、优化热点路径、降低延迟的实用工具
156 周安装