merge-conflicts

Guide git merge conflict resolution with merge instead of rebase.

308|76|Updated Jul 25, 2013
One-click install
npx skills add https://github.com/bikeindex/bike_index --skill merge-conflicts-bikeindex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge-conflicts
Source: https://github.com/bikeindex/bike_index/tree/main/.claude/skills/merge-conflicts
Command: npx skills add https://github.com/bikeindex/bike_index --skill merge-conflicts-bikeindex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users resolve git merge conflicts by guiding them through the process of merging branches while preserving the history and intent of their work.

Core Features & Use Cases

  • Merging Strategy: Encourages users to merge rather than rebase for maintaining history.
  • Conflict Resolution Guidance: Provides steps for resolving conflicts based on understanding both sides.
  • Commit Best Practices: Suggests keeping merge commits focused on merging only.
  • Use Case: When a branch is behind main and needs to be updated, this Skill guides the user through the process of merging and resolving conflicts.

Quick Start

Merge the branch with 'git merge --no-edit origin/main'.

Frequently Asked Questions about merge-conflicts

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

FAQPage Schema
How do I resolve git merge conflicts when syncing my branch with main?

To resolve git merge conflicts, merge the main branch into your feature branch using 'git merge --no-edit origin/main' and manually resolve conflicting files to preserve both histories. This approach ensures proper history preservation and code integrity during synchronization.

What's the best way to update a branch that is behind main without losing commit history?

The best way to update a branch behind main while preserving history is to use a git merge strategy rather than a rebase. This maintains the original commit context and ensures intentional integration of both branches.

Why should I choose a merge strategy over rebase for resolving code integration conflicts?

You should choose a merge strategy over rebase to maintain accurate history preservation and commit intent. Rebasing rewrites commit history, whereas merging creates a dedicated merge commit that clearly documents the code integration event.

How do I keep merge commits focused when resolving branch management conflicts?

Keep merge commits focused by ensuring the merge commit contains only the synchronization changes from the main branch. You should resolve conflicts and finalize the merge without mixing unrelated feature development into the integration commit.

When do I need to manually resolve git merge conflicts during branch synchronization?

You need to manually resolve git merge conflicts when a branch is behind main and requires updating, and git cannot automatically reconcile overlapping changes in the same code segments. This process requires understanding both sides of the conflict.