resolve-rebase-conflicts

Solid

Settle the conflicts a stopped rebase left behind. Mechanical ones resolve without asking and the rest arrive with the evidence in front of you. Every path gets a classification first. An append-only sorted list becomes the verified union of both sides. A generated file takes one side whole and waits for its generator. Everything else is a real disagreement with what each side changed printed beside it. The rebase skill calls this at every stop. Use it directly whenever a rebase or cherry-pick stops on a conflict and the user asks to resolve it.

AI & Automation 73 stars 6 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
62
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Resolve rebase conflicts Settle every conflicted path and stage it, so the rebase can advance. This skill ends there. Continuing the replay and verifying the result belong to the `rebase` skill. A guard hook runs alongside. It refuses `--ours` and `--theirs`, which mean the opposite of what they read during a rebase, and it refuses staging a file that still carries markers. ## The inversion, once During a rebase git checks out the base and replays your commits onto it. Your work is the side arriving, so git calls it `--theirs`, and the base you are moving onto becomes `--ours`. Every intuition about which word means which runs backwards here, and a wrong pick resolves cleanly and stays wrong. Nothing in this skill uses either word. The sides are: - `base-side` is the commit the branch replays onto. git calls it `--ours`, and the index calls it stage 2. - `replayed-side` is the commit git is replaying right now. git calls it `--theirs`, and the index calls it stage 3. The scripts read the index stages rather than the marker labels, so the naming holds under whatever marker style the repository sets. ## Marker shape With `merge.conflictStyle` set to `diff3` or `zdiff3`, a conflict carries three sections rather than two: ```text <<<<<<< HEAD the base-side content ||||||| <ancestor label> what both sides started from ======= the replayed-side content >>>>>>> <commit> (<subject>) ``` That `|||||||` section is the common ancestor, and it's the most useful part of the b...

Details

Author
tbhb
Repository
tbhb/vale-ai-tells
Created
8 months ago
Last Updated
2 days ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category