agentsclimarketplace

Resolving merge conflicts

Skill toRolex/rolex-skills/skills/engineering/resolving-merge-conflicts

当你需要解决进行中的 git merge/rebase 冲突时使用。From its SKILL.md

Install
npx -y skills add toRolex/rolex-skills --skill resolving-merge-conflicts

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.2 KB, 377 tokens by cl100k_base, as published. Nobody here has run it

Resolving Merge Conflicts(解决合并冲突)

术语约定: 以下关键术语保持固定译法,含英文源词以便对照:

English中文
merge/rebase合并/rebase
primary sources一手资料
hunkhunk
  1. 查看当前状态——合并/rebase 的状态。检查 git 历史和冲突文件。

  2. 找到每个冲突的一手来源。深入理解每个变更为什么被做出,以及原始意图是什么。阅读 commit 消息,检查 PR,检查原始 issue/tickets。

  3. 解决每个 hunk。 尽可能保留两个意图。在不可兼得时,选择与合并声明目标一致的那个,并记录权衡。不要发明新行为。始终解决;永远不要 --abort。

  4. 发现项目的自动检查并运行它们——通常是类型检查,然后测试,然后格式化。修复合并引入的任何问题。

  5. 完成合并/rebase。 暂存所有内容并提交。如果是 rebasing,继续 rebase 过程直到所有 commits 都被 rebase 完成。

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.