forked from mirrors/jj
docs: Replace some mentions of jj co
with jj new
.
Also move some sentences away from "check out" to "create a new revision ...", even if it isn't the phrasing we want. Fixes #3487
This commit is contained in:
parent
3d267de53e
commit
3ac61a4984
2 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ Branches are named pointers to revisions (just like they are in Git). You can
|
||||||
move them without affecting the target revision's identity. Branches
|
move them without affecting the target revision's identity. Branches
|
||||||
automatically move when revisions are rewritten (e.g. by `jj rebase`). You can
|
automatically move when revisions are rewritten (e.g. by `jj rebase`). You can
|
||||||
pass a branch's name to commands that want a revision as argument. For example,
|
pass a branch's name to commands that want a revision as argument. For example,
|
||||||
`jj co main` will check out the revision pointed to by the "main" branch. Use
|
`jj new main` will create a new revision on top of the "main" branch. Use
|
||||||
`jj branch list` to list branches and `jj branch` to create, move, or delete
|
`jj branch list` to list branches and `jj branch` to create, move, or delete
|
||||||
branches. There is currently no concept of an active/current/checked-out branch.
|
branches. There is currently no concept of an active/current/checked-out branch.
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ include information about the conflicted branches (and instructions for how to
|
||||||
mitigate it). `jj branch list` will have details. `jj log` will show the branch
|
mitigate it). `jj branch list` will have details. `jj log` will show the branch
|
||||||
name with a question mark suffix (e.g. `main?`) on each of the conflicted
|
name with a question mark suffix (e.g. `main?`) on each of the conflicted
|
||||||
branch's potential target revisions. Using the branch name to look up a revision
|
branch's potential target revisions. Using the branch name to look up a revision
|
||||||
will resolve to all potential targets. That means that `jj co main` will error
|
will resolve to all potential targets. That means that `jj new main` will error
|
||||||
out, complaining that the revset resolved to multiple revisions.
|
out, complaining that the revset resolved to multiple revisions.
|
||||||
|
|
||||||
Both local branches (e.g. `main`) and the remote branch (e.g. `main@origin`) can
|
Both local branches (e.g. `main`) and the remote branch (e.g. `main@origin`) can
|
||||||
|
|
|
@ -32,9 +32,9 @@ various use cases.
|
||||||
branch', and new commits will automatically update the branch. This is
|
branch', and new commits will automatically update the branch. This is
|
||||||
necessary in Git because Git might otherwise lose track of the new commits.
|
necessary in Git because Git might otherwise lose track of the new commits.
|
||||||
Jujutsu does not have a 'current branch'; instead, you update branches
|
Jujutsu does not have a 'current branch'; instead, you update branches
|
||||||
manually. For example, if you check out a commit with a branch, new commits
|
manually. For example, if you start work on top of a commit with a branch,
|
||||||
are created on top of the branch, then you issue a later command to update the
|
new commits are created on top of the branch, then you issue a later command
|
||||||
branch.
|
to update the branch.
|
||||||
* **Conflicts can be committed.** No commands fail because of merge conflicts.
|
* **Conflicts can be committed.** No commands fail because of merge conflicts.
|
||||||
The conflicts are instead recorded in commits and you can resolve them later.
|
The conflicts are instead recorded in commits and you can resolve them later.
|
||||||
[Details](conflicts.md).
|
[Details](conflicts.md).
|
||||||
|
|
Loading…
Reference in a new issue