resolving-merge-conflicts

Resolve in-progress git merge and rebase conflicts while preserving both change intents.

Updated Sep 2, 2026
One-click install
npx skills add https://github.com/ZubairImtiaz3/Safar-E-Iman-Portal --skill resolving-merge-conflicts-zubairimtiaz3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resolving-merge-conflicts
Source: https://github.com/ZubairImtiaz3/Safar-E-Iman-Portal/tree/main/.agents/skills/resolving-merge-conflicts
Command: npx skills add https://github.com/ZubairImtiaz3/Safar-E-Iman-Portal --skill resolving-merge-conflicts-zubairimtiaz3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Merge and rebase conflicts interrupt development and are often resolved hastily, losing the intent of one side's changes or breaking the build. This Skill provides a disciplined workflow for understanding each conflict's origin and resolving it correctly. ## Core Features & Use Cases - Context Investigation: Inspect the current merge/rebase state, git history, commit messages, PRs, and original tickets to understand why each change was made. - Intent-Preserving Resolution: Resolve each conflicting hunk by preserving both intents where possible, choosing the side matching the merge's stated goal when they are incompatible, and never inventing new behavior or aborting. - Verification and Completion: Run the project's automated checks (typecheck, tests, formatting), fix anything the merge broke, then stage, commit, and continue the rebase until finished. - Use Case: During a long-running feature branch rebase onto main, conflicts appear across several files. Use this Skill to trace each conflict back to its originating PR, resolve hunks without losing either change, and verify the result with the project's test suite. ## Quick Start Resolve the current git merge conflict in my repository, preserving the intent of both branches, then run the tests and finish the merge.

Frequently Asked Questions about resolving-merge-conflicts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve a git merge conflict without losing changes?

Inspect the current merge state and git history, then trace each conflict to its source commits, PRs, or tickets to understand intent. Resolve each hunk preserving both intents where possible, and run the project's typecheck and tests before committing.

How to resolve conflicts during a git rebase?

During a rebase, examine the conflicting files and the commits being replayed to understand each change's purpose. Resolve every hunk, stage the files, and continue the rebase until all commits are applied, never aborting midway.

Should I use git merge or git rebase when conflicts happen?

Both can produce conflicts, and the resolution approach is the same: understand each side's intent and preserve it where possible. When intents are incompatible, pick the side matching the merge's stated goal and note the trade-off.

What should I do after resolving merge conflicts?

Run the project's automated checks, typically typecheck first, then tests, then formatting, and fix anything the merge broke. Finally stage everything, commit, and continue the rebase if one was in progress.

When should I not use git merge --abort during a conflict?

This workflow explicitly avoids aborting: always resolve the conflict rather than running git merge --abort or git rebase --abort. Aborting discards progress and leaves the underlying divergence unaddressed.