Git.merge conflicts

From causify-ai/helpers · View interactive version

Git.merge conflicts is an AI agent skill from the GitHub repository causify-ai/helpers. Resolve git merge, rebase, or cherry-pick conflicts and finalize the operation

How to use this skill

Skill file

Goal

resolve it, verify the result, and finalize the in-progress operation

Workflow

Identify the Operation In Progress

cherry-pick, since finalizing the resolution differs by operation

```bash

> ls -a .git | grep -E "MERGE_HEAD|rebase-merge|rebase-apply|CHERRY_PICK_HEAD"

```

<TARGET>, the branch that already contains history (e.g., main during a merge,

or the branch being rebased onto)

Find the Files with Conflicts

```bash

> git diff --name-only --diff-filter=U

```

Understand the Context

```bash

> gh pr view

```

instead

conflict, to understand the intent behind each side

```bash

> git log <TARGET>..<SOURCE>

> git log <SOURCE>..<TARGET>

```

Propose Fixes

======= / >>>>>>> block)

propose what needs to be done

```verbatim

1. tutorials/GitHub_Stats/Master_GitHub_analysis.py

2. tutorials/GitHub_Stats/docker_jupyter.sh

removes it.

```

could lose them permanently

Ask User and Apply the Changes

resolution

```bash

> grep -rn '^<<<<<<<\|^=======\|^>>>>>>>' <RESOLVED_FILES>

```

```bash

> git add <FILE>

```

Finalize the Operation

committing without permission

explicitly asks for it

Verification

```bash

> git status

```

Ask for Help If Unsure How to Do

clarifications

what the plan is

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.