Skip to content

Commit

Permalink
docs: suggest "jj bookmark move" where makes sense
Browse files Browse the repository at this point in the history
Closes #5067
  • Loading branch information
yuja committed Dec 11, 2024
1 parent 32ee480 commit e1936a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
If you're familiar with Git, you might expect the current bookmark to move forward
when you commit. However, Jujutsu does not have a concept of a "current bookmark".

To move bookmarks, use `jj bookmark set`.
To move bookmarks, use `jj bookmark move`.

### I made a commit and `jj git push --all` says "Nothing changed" instead of pushing it. What do I do?

Expand Down Expand Up @@ -317,7 +317,7 @@ of them before abandoning it.
A [conflicted bookmark][bookmarks_conflicts] is a bookmark that refers to multiple
different commits because jj couldn't fully resolve its desired position.
Resolving conflicted bookmarks is usually done by setting the bookmark to the
correct commit using `jj bookmark set <commit ID>`.
correct commit using `jj bookmark move <name> --to <commit ID>`.

Usually, the different commits associated with the conflicted bookmark should all
appear in the log, but if they don't you can use `jj bookmark list`to show all the
Expand Down
2 changes: 1 addition & 1 deletion docs/bookmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ makes several safety checks.
if the unexpected location is identical to the local position of the bookmark.

2. The local bookmark must not be [conflicted](#conflicts). If it is, you would
need to use `jj bookmark set`, for example, to resolve the conflict.
need to use `jj bookmark move`, for example, to resolve the conflict.

This makes `jj git push` safe even if `jj git fetch` is performed on a timer
in the background (this situation is a known issue[^known-issue] with some
Expand Down
4 changes: 2 additions & 2 deletions docs/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ $ jj diff
$ # Give the fix a description and create a new working-copy on top.
$ jj commit -m 'address pr comments'
$ # Update the bookmark to point to the new commit.
$ jj bookmark set your-feature -r @-
$ jj bookmark move your-feature --to @-
$ # Push it to your remote
$ jj git push
```
Expand All @@ -136,7 +136,7 @@ $ jj diff
$ # Give the fix a description.
$ jj describe -m 'address pr comments'
$ # Update the bookmark to point to the current commit.
$ jj bookmark set your-feature -r @
$ jj bookmark move your-feature --to @
$ # Push it to your remote
$ jj git push
```
Expand Down

0 comments on commit e1936a2

Please sign in to comment.