jj-merge-repos

Installation
SKILL.md

Merging JJ Repositories

Guide for merging two separate Jujutsu repositories into a single unified repo.

When to Use This Skill

  • Combining two unrelated repositories into one
  • Recovering from diverged histories (local vs remote rewrites)
  • Splicing commit histories together
  • Rebasing an entire repository onto another

How It Works

All JJ repos share a common empty root commit. When you add a remote from another repo and fetch, you get two diverging chains from that root. You can then:

  1. Delete one chain (if you just want the other repo's history)
  2. Rebase one chain onto the other (splice them together)

Quick Reference

Related skills
Installs
1
GitHub Stars
59
First Seen
Mar 10, 2026