1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-17 10:55:44 +02:00
tldr/pages/common/jj-bookmark.md

30 lines
878 B
Markdown
Raw Normal View History

2025-07-03 14:06:59 +05:30
# jj bookmark
> Manage bookmarks in a `jj` repository.
> When using a Git backend, bookmarks correspond to Git branches.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-bookmark>.
- Create a new bookmark at the given revision:
`jj {{[b|bookmark]}} {{[c|create]}} {{[-r|--revision]}} {{revision}} {{name}}`
2025-07-03 14:06:59 +05:30
- List all existing bookmarks and their targets:
`jj {{[b|bookmark]}} {{[l|list]}}`
2025-07-03 14:06:59 +05:30
- Move an existing bookmark to another revision:
`jj {{[b|bookmark]}} {{[m|move]}} {{[-t|--to]}} {{revision}} {{name}}`
2025-07-03 14:06:59 +05:30
- Track given remote bookmarks:
`jj {{[b|bookmark]}} {{[t|track]}} {{name}}@{{remote}}`
2025-07-03 14:06:59 +05:30
- Delete a bookmark, and propagate the deletion to remotes on the next push:
`jj {{[b|bookmark]}} {{[d|delete]}} {{name}}`
2025-07-03 14:06:59 +05:30
- Forget a bookmark locally, without marking its deletion to be pushed:
`jj {{[b|bookmark]}} {{[f|forget]}} {{name}}`