name: jj-commit description: Stages and commits changes in jj (Jujutsu VCS) with a clear, concise commit message. Use when committing changes with jj, setting a revision description, or when the user asks to commit with jj.
jj commit (describe)
Create a commit for the current changes by setting the revision description. In jj there is no staging area; the working copy is the current revision.
Steps
- Run
jj statusto see working-copy state and which files changed. - Run
jj diffto see changes in the current revision (working copy vs parent). Use-r @to restrict to the current rev if needed. - Run
jj log -n 5to see recent commit style. - Write a commit message and run
jj describe -m "message".
If the user provides a message hint (e.g. in the request), use it when writing the message.
To start a new change before describing, run jj new; then set the description on that revision.
Commit message rules
- Use the imperative mood ("Add", "Fix", "Remove", not "Added", "Fixes", "Removed").
- Be concise: one short sentence, ideally under 50 characters.
- Do NOT use conventional commit prefixes (no
feat:,fix:,chore:, etc.). - Do NOT add any
Co-Authored-Byor similar trailers. - Focus on what changed and why, not how.
- If a second line is needed for context, keep it brief.
Examples of good messages
Prevent discount code from being cleared on editAdd integration test for offer code persistenceRemove unused legacy export helperFix thumbnail missing in upsell insert
When pushing, use jj-bookmark-push; never push without a description.