commands.sh

jj bookmark

all

Manage bookmarks in a `jj` repository. When using a Git backend, bookmarks correspond to Git branches.

More info →

Options (9)

boolean

Create a new bookmark at the given revision

Example: jj {{[b|bookmark]}} {{[c|create]}} {{[-r|--revision]}} {{revision}} {{name}}
boolean

Create a new bookmark at the given revision

Example: jj {{[b|bookmark]}} {{[c|create]}} {{[-r|--revision]}} {{revision}} {{name}}
-r, --revisionboolean

Create a new bookmark at the given revision

Example: jj {{[b|bookmark]}} {{[c|create]}} {{[-r|--revision]}} {{revision}} {{name}}
boolean

List all existing bookmarks and their targets

Example: jj {{[b|bookmark]}} {{[l|list]}}
boolean

Move an existing bookmark to another revision

Example: jj {{[b|bookmark]}} {{[m|move]}} {{[-t|--to]}} {{revision}} {{name}}
-t, --toboolean

Move an existing bookmark to another revision

Example: jj {{[b|bookmark]}} {{[m|move]}} {{[-t|--to]}} {{revision}} {{name}}
boolean

Track given remote bookmarks

Example: jj {{[b|bookmark]}} {{[t|track]}} {{name}}@{{remote}}
boolean

Delete a bookmark, and propagate the deletion to remotes on the next push

Example: jj {{[b|bookmark]}} {{[d|delete]}} {{name}}
boolean

Forget a bookmark locally, without marking its deletion to be pushed

Example: jj {{[b|bookmark]}} {{[f|forget]}} {{name}}

Examples (6)

Create a new bookmark at the given revision

jj [b|bookmark] [c|create] [-r|--revision] revision name

List all existing bookmarks and their targets

jj [b|bookmark] [l|list]

Move an existing bookmark to another revision

jj [b|bookmark] [m|move] [-t|--to] revision name

Track given remote bookmarks

jj [b|bookmark] [t|track] name@remote

Delete a bookmark, and propagate the deletion to remotes on the next push

jj [b|bookmark] [d|delete] name

Forget a bookmark locally, without marking its deletion to be pushed

jj [b|bookmark] [f|forget] name
made by @shridhargupta | data from tldr-pages