Skip to content
Discussion options

You must be logged in to vote

If you delete the branch in GitHub using the "delete branch" button on the PR page after merging the PR, then jj git fetch will automatically abandon the old version of the changes that were rebased, assuming you don't have any other branches on top of them. This will avoid the divergent changes.

Otherwise, if you do have another branch on top of the rebased branch, then you can just rebase that other branch using something like jj rebase -b <other branch> -d main, and jj will automatically abandon any duplicate commits, resolving the divergence.

In the future, we'd like for this to be done automatically with a new jj sync command I believe, but it hasn't been implemented yet.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by weizheheng
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