fix-backport-conflicts

Resolve Git merge conflict markers in backport pull requests.

73|112|Updated Dec 29, 2015
One-click install
npx skills add https://github.com/scylladb/scylla-cluster-tests --skill fix-backport-conflicts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-backport-conflicts
Source: https://github.com/scylladb/scylla-cluster-tests/tree/main/skills/fix-backport-conflicts
Command: npx skills add https://github.com/scylladb/scylla-cluster-tests --skill fix-backport-conflicts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the resolution of inline merge conflict markers that arise during the backporting of code changes, ensuring clean commits with original authorship preserved.

Core Features & Use Cases

  • Conflict Detection: Identifies inline merge conflict markers (<<<<<<<, =======, >>>>>>>) in Git commits.
  • Conflict Resolution: Provides a structured workflow for understanding and manually resolving merge conflicts.
  • Commit Reconstruction: Recreates original commits with correct authorship and messages after conflict resolution.
  • Use Case: When a critical bug fix is backported to an older release branch, and the cherry-pick process introduces merge conflicts, this Skill helps clean up those conflicts and ensure the backported commit is correctly attributed and messages are preserved.

Quick Start

Use the fix-backport-conflicts skill to resolve conflicts in pull request number 13920.

Frequently Asked Questions about fix-backport-conflicts

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

FAQPage Schema
How do I resolve merge conflicts when backporting commits to an older release branch?

To resolve merge conflicts when backporting commits, you need to identify inline Git conflict markers, manually edit the conflicting files, and then recreate the commit to preserve original authorship and messages. This ensures the cherry-picked code integrates cleanly into the target branch.

What causes merge conflicts during a Git cherry-pick?

Merge conflicts during a Git cherry-pick occur when the backported code changes overlap with modifications already present in the target release branch. This introduces inline conflict markers that must be manually resolved before the pull request can be successfully merged.

Do I need GitHub CLI to fix merge conflicts in backport pull requests?

Yes, you need both the git and gh CLI tools installed and configured to fix merge conflicts in backport pull requests. These command-line tools are required for repository interaction and managing the pull request workflow during conflict resolution.

What is the best way to preserve original authorship when resolving backport conflicts?

The best way to preserve original authorship when resolving backport conflicts is to reconstruct the commit after manually fixing the inline conflict markers. This approach maintains the original author and commit messages instead of creating a new commit under your account.

Why does my backport pull request still show inline conflict markers after cherry-picking?

Your backport pull request shows inline conflict markers because the cherry-picked changes conflict with the target branch code. You must manually resolve these markers by editing the files and recommitting with the original messages before the PR can merge.