Jj Finish banner
nandofarias nandofarias

Jj Finish

Git community

Description

Clean up after a PR at the bottom of the stack has been merged. ## Steps 1. **Fetch latest (to get the merge):** ```bash jj git fetch ``` 2. **Identify merged bookmarks:** Look for bookmarks that were in the stack but are now on trunk (merged): ```bash jj bookmark list --all -T 'if(name.starts_with("ffarias/"), name ++ " " ++ if(tracking_present, "tracked", "local") ++ "\n")' ``` Also check which bookmarks were deleted from remote (these were merged + branch deleted):

Installation

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

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

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

Full documentation available on GitHub

View Source Repository