Git Conflict Resolver

intermediatedevelopmentMin 32K context

Analyzes and resolves git merge conflicts by understanding the intent of both sides. Examines the conflict markers, surrounding context, and commit history to produce a correct merged result that preserves both changes without breaking functionality.

Use Cases

  • Resolving complex merge conflicts in large files
  • Understanding intent behind conflicting changes
  • Merging long-lived feature branches
  • Resolving conflicts in generated files (lockfiles, configs)
  • Batch-resolving multiple conflicts in a single merge

Example Prompt

Resolve the following git merge conflict.

Context:
- Branch A (ours): [describe what this branch was doing]
- Branch B (theirs): [describe what this branch was doing]

Conflicted file:
```
<<<<<<< HEAD
[our version]
=======
[their version]
>>>>>>> feature-branch
```

Please:
1. Explain what each side was trying to do
2. Provide the correctly merged result
3. Flag if both changes can coexist or if one should win
4. Note any potential issues with the merged result

Recommended Models

Compatible Tools

claude-codecursorgithub-copilotkiroany

Modalities

Input: code, text
Output: code, text

Related Skills

Author

OpenModels Community

@openmodelsrun