-
🖖, I have a graph like this,
and then someone adds new commits to
and I’d like to merge the new stuff in a new commit
I know this can be done with something like
but this is a lot of manual work, and seem hard to script. Is there a good way to do this that I’m not seeing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You can probably do it in fewer commands: # Insert the new commit between C and its descendants
jj new -A C
# Now we're editing this new commit
# Prepend `main` as an additional parent.
jj rebase -s @ -d main -d all:@- I don't know if there's a way to do this in one command. |
Beta Was this translation helpful? Give feedback.
-
If I understand correctly, you could even do just |
Beta Was this translation helpful? Give feedback.
You can probably do it in fewer commands:
I don't know if there's a way to do this in one command.