Revision and Commit

Create a new revision based on the current tip of main

jj new main

Change commit message

jj describe -m "message"

jj commit is just jj describe followed by jj new.

Abandon a revision:

jj abandon <rev ID>

@ Vs Git’s HEAD

In jj, @ is a special character of “whatever content the working copy reflect.” This is different from git’s HEAD, which always point to a commit, but jj’s @ may contains uncommited changes. 1

Footnotes

Footnotes

  1. Viewing the contents of your repository with jj log - Steve’s Jujutsu Tutorial