Jj Sync banner
nandofarias nandofarias

Jj Sync

Development community

Description

Sync the stack with the latest develop. Steps: 1. **Fetch from remote:** ```bash jj git fetch ``` 2. **Show what changed on develop:** ```bash jj log -r 'trunk()' --limit 3 ``` 3. **Rebase the stack onto latest trunk:** ```bash jj rebase -b @ -d 'trunk()' ``` The `-b @` flag rebases the entire branch containing `@` (the whole stack), and `-d trunk()` sets the new destination. 4. **Check for conflicts after rebase:** ```bash jj log -r 'trunk()..@ & conflic

Installation

Installs to ~/.claude/commands/nandofarias-dotfiles-jj-sync.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/nandofarias/dotfiles/HEAD/.claude/commands/jj-sync.md -o ~/.claude/commands/nandofarias-dotfiles-jj-sync.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository