Jujutsu Commit and Push
Commit and push workflow for Jujutsu version control.
Workflow
When user requests to commit and push:
- •Review changes with
jj statusandjj diff - •Draft one-sentence commit message describing changes
- •Use AskUserQuestion to confirm commit message
- •Get current bookmark with
bash scripts/get-bookmark.sh - •Run
bash scripts/commit-and-push.sh "<message>" "<bookmark>" - •Script will commit, set bookmark on @-, and prompt for push confirmation
Scripts
get-bookmark.sh
Find bookmark on current or parent revisions.
bash
bash scripts/get-bookmark.sh
Returns bookmark name or exits with error if none found.
commit-and-push.sh
Commit, set bookmark, and push.
bash
bash scripts/commit-and-push.sh "commit message" "bookmark-name"
Workflow:
- •Commits with provided message
- •Sets bookmark to @- (parent revision)
- •Prompts user to confirm push
- •Pushes bookmark to remote if confirmed
Notes
Per user preferences:
- •Bookmark names prefix with
mt/ - •Include issue number if available:
mt/7446/fix-bugs - •Do not add "Generated with Claude" or "Co-Authored-By Claude" to commits