You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forgetting remote bookmarks can lead to surprising behavior since it
causes the repo state to become out-of-sync with the remote until the
next `jj git fetch`. Untracking the bookmarks should be a simpler and
more intuitive default behavior. The old behavior is still available
with the `--include-remotes` flag.
I also changed the displayed number of forgotten branches. Previously
when forgetting "bookmark", "bookmark@remote", and "bookmark@git" it
would display `Forgot 1 bookmarks`, but I think this would be confusing
with the new flag since the user might think that `--include-remotes`
didn't work. Now it shows separate `Forgot N local bookmarks` and
`Forgot M remote bookmarks` messages when applicable.
Copy file name to clipboardExpand all lines: cli/tests/[email protected]
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ See the [bookmark documentation] for more information.
290
290
291
291
* `create` — Create a new bookmark
292
292
* `delete` — Delete an existing bookmark and propagate the deletion to remotes on the next push
293
-
* `forget` — Forget everything about a bookmark, including its local and remote targets
293
+
* `forget` — Forget a bookmark without marking it as a deletion to be pushed
294
294
* `list` — List bookmarks and their targets
295
295
* `move` — Move existing bookmarks to target revision
296
296
* `rename` — Rename `old` bookmark name to `new` bookmark name
@@ -322,6 +322,8 @@ Delete an existing bookmark and propagate the deletion to remotes on the next pu
322
322
323
323
Revisions referred to by the deleted bookmarks are not abandoned. To delete revisions as well as bookmarks, use `jj abandon`. For example, `jj abandon main..<bookmark>` will abandon revisions belonging to the `<bookmark>` branch (relative to the `main` branch.)
324
324
325
+
If you don't want the deletion of the local bookmark to propagate to any tracked remote bookmarks, use `jj bookmark forget` instead.
326
+
325
327
**Usage:** `jj bookmark delete <NAMES>...`
326
328
327
329
###### **Arguments:**
@@ -336,11 +338,11 @@ Revisions referred to by the deleted bookmarks are not abandoned. To delete revi
336
338
337
339
## `jj bookmark forget`
338
340
339
-
Forget everything about a bookmark, including its local and remote targets
341
+
Forget a bookmark without marking it as a deletion to be pushed
340
342
341
-
A forgotten bookmark will not impact remotes on future pushes. It will be recreated on future pulls if it still exists in the remote.
343
+
If a local bookmark is forgotten, any corresponding remote bookmarks will become untracked to ensure that the forgotten bookmark will not impact remotes on future pushes.
* `--include-remotes` — When forgetting a local bookmark, also forget any corresponding remote bookmarks
358
+
359
+
A forgotten remote bookmark will not impact remotes on future pushes. It will be recreated on future fetches if it still exists on the remote. If there is a corresponding Git-tracking remote bookmark, it will also be forgotten.
360
+
353
361
354
362
355
363
## `jj bookmark list`
@@ -485,6 +493,8 @@ Stop tracking given remote bookmarks
485
493
486
494
A non-tracking remote bookmark is just a pointer to the last-fetched remote bookmark. It won't be imported as a local bookmark on future pulls.
487
495
496
+
If you want to forget a local bookmark while also untracking the corresponding remote bookmarks, use `jj bookmark forget` instead.
0 commit comments