resolving-merge-conflicts

仓库创建 2026年7月27日最近提交 1 天前SkillHot 收录 1 天前
▸ 精选理由

系统性定位冲突根源并给出逐段解决方案,适合复杂仓库。

▸ 风险提示

会修改 git 历史或文件,执行前请备份或确认权限。

这个 Skill 做什么

定位并逐簇解决进行中 git 合并/变基冲突,保留各方意图并修复提交。

在进行中的 git merge 或 rebase 冲突里逐块定位并解决差异,保留各方改动意图并修复提交历史。用在合并失败、冲突难以判断归属或需要把多个提交合并为干净历史时。特别注意查原始 commit/PR/issue 来判断意图,尽量合并双方内容或明确选择并整理好提交信息。

▸ 展开 SKILL.md 英文原文

Use when you need to resolve an in-progress git merge/rebase conflict.

开发编程合并冲突Git 修复意图保持通用
0
Stars
0
Forks
22
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/octopus117/mattpocock-skills-adapt/main/skills/resolving-merge-conflicts/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/octopus117/mattpocock-skills-adapt/main/skills/resolving-merge-conflicts/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
1. **See the current state** of the merge/rebase. Check git history, and the conflicting files.

2. **Find the primary sources** for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.

3. **Resolve each hunk.** Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do **not** invent new behaviour. Always resolve; never `--abort`.

4. Discover the project's **automated checks** and run them — typically typecheck, then tests, then format. Fix anything the merge broke.

5. **Finish the merge/rebase.** Stage eve
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有