From 991d42969d5c27cdb1f1c339472b7ca846071d6b Mon Sep 17 00:00:00 2001 From: Agam Agarwal Date: Thu, 3 Jul 2025 14:06:59 +0530 Subject: [PATCH] jj-bookmark: add page (#17049) --- pages/common/jj-bookmark.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/common/jj-bookmark.md diff --git a/pages/common/jj-bookmark.md b/pages/common/jj-bookmark.md new file mode 100644 index 0000000000..28ac5e1263 --- /dev/null +++ b/pages/common/jj-bookmark.md @@ -0,0 +1,29 @@ +# jj bookmark + +> Manage bookmarks in a `jj` repository. +> When using a Git backend, bookmarks correspond to Git branches. +> More information: . + +- Create a new bookmark at the given revision: + +`jj bookmark create {{[-r|--revision]}} {{revision}} {{name}}` + +- List all existing bookmarks and their targets: + +`jj bookmark list` + +- Move an existing bookmark to another revision: + +`jj bookmark move {{[-t|--to]}} {{revision}} {{name}}` + +- Track given remote bookmarks: + +`jj bookmark track {{name}}@{{remote}}` + +- Delete a bookmark, and propagate the deletion to remotes on the next push: + +`jj bookmark delete {{name}}` + +- Forget a bookmark locally, without marking its deletion to be pushed: + +`jj bookmark forget {{name}}`