← ClaudeAtlas

resolving-merge-conflictslisted

Work through an in-progress git merge or rebase conflict hunk by hunk, resolving by intent traced to each side's primary source, then finish the operation — never abort.
988hj7tczd-oss/skill-tool · ★ 0 · AI & Automation · score 69
Install: claude install-skill 988hj7tczd-oss/skill-tool
# Resolving Merge Conflicts — 解决合并冲突 1. **看当前状态**。检查 git history 和冲突的文件。 2. **找每个冲突的一手源**。深入理解为什么做每个更改,原始意图是什么。读 commit messages,检查 PRs,检查原始 issue/tickets。 3. **逐 hunk 解决**。在可能的地方保留两边的意图。不兼容时,选符合合并声明目标的那一方��注明权衡。**不要**发明新行为。始终解决;永远不 `--abort`。 4. **发现项目的自动化检查**并运行——通常是 typecheck,然后测试,然后格式化。修好合并引入的问题。 5. **完成合并/rebase**。stage 所有东西并 commit。如果 rebasing,继续 rebase 过程直到所有 commits 都被 rebase。