Git.merge conflicts

From gpsaggese/helpers · View interactive version

Git.merge conflicts is an AI agent skill from the GitHub repository gpsaggese/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 operation

Workflow

Identify the Operation In Progress

differs by operation

```bash

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

```

and <TARGET>, the branch with existing history (e.g., main for a merge, or

the branch rebased onto)

Find the Files with Conflicts

```bash

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

```

Understand the Context

```bash

> gh pr view

```

the intent of each side:

```bash

> git log <TARGET>..<SOURCE>

> git log <SOURCE>..<TARGET>

```

Propose Fixes

>>>>>>> blocks)

```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

```bash

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

```

```bash

> git add <FILE>

```

Finalize the Operation

committing without permission

explicitly asks for it

Verification

```bash

> git status

```

.claude/skills/git.merge_conflicts/SKILL.md

Ask for Help If Unsure How to Do

clarifications

```markdown

```

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.