Skip to content
Discussion options

You must be logged in to vote

Now that you have the changes in a new commit, you could jj rebase -s <new_commit> -d <branch>@origin to rebase it onto the original remote branch commit, and then abandon the old rewritten version.


Or instead of my original message, maybe this would've worked better:

jj new <branch>@origin
jj restore --from <branch>
jj abandon <branch>

Which basically makes a new commit on top of the remote branch, and then resets the commit to the contents from the local branch.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lcnbr
Comment options

@scott2000
Comment options

Answer selected by lcnbr
@arxanas
Comment options

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