Jj Squash banner
nandofarias nandofarias

Jj Squash

Development community

Description

Squash the current change into its parent. 1. **Show what will be squashed:** ```bash jj log -r '@ | @-' --no-graph -T 'change_id.shortest(8) ++ " " ++ description.first_line() ++ "\n"' ``` 2. **Squash:** ```bash jj squash ``` This moves all changes from `@` into `@-` (parent). The working copy becomes a new empty change on top. 3. **If the squashed change had a bookmark, it might need moving:** Check if the old `@` had a bookmark that should now be on the parent. 4.

Installation

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

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

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

Full documentation available on GitHub

View Source Repository