diff --git a/cli/src/commands/new.rs b/cli/src/commands/new.rs index 09f7575b36..7124a11698 100644 --- a/cli/src/commands/new.rs +++ b/cli/src/commands/new.rs @@ -44,7 +44,7 @@ use crate::ui::Ui; /// the new commit. This can be avoided with `--no-edit`. /// /// Note that you can create a merge commit by specifying multiple revisions as -/// argument. For example, `jj new main @` will create a new commit with the +/// argument. For example, `jj new @ main` will create a new commit with the /// `main` bookmark and the working copy as parents. /// /// For more information, see diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index d666a72bee..974a13b121 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1392,7 +1392,7 @@ Create a new, empty change and (by default) edit it in the working copy By default, `jj` will edit the new change, making the working copy represent the new commit. This can be avoided with `--no-edit`. -Note that you can create a merge commit by specifying multiple revisions as argument. For example, `jj new main @` will create a new commit with the `main` bookmark and the working copy as parents. +Note that you can create a merge commit by specifying multiple revisions as argument. For example, `jj new @ main` will create a new commit with the `main` bookmark and the working copy as parents. For more information, see https://martinvonz.github.io/jj/latest/working-copy/.