Skip to content
Discussion options

You must be logged in to vote

It's expected that your next step is to rebase the branch onto trunk() (or wherever the abandoned commits landed). Doing so will resolve the conflicts.

jj rebase -d main -b klmk

# since the branch contains @, and -b @ 
# is the default rebase source, you
# could simplify it to this:
jj rebase -d main

We'd like to have a jj git sync that does this fetch-then-rebase automatically but it's nontrivial and needs design.

The justification for this behavior is that jj is trying to keep the repo in sync with git. In git, deleting the remote branch makes the commits from that branch unreachable. The equivalent operation in jj is to abandon them. Since your anonymous commits were not reachable fr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tekumara
Comment options

Answer selected by tekumara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants