Skip to content

Stuck trying to implement a GitHub-based branch workflow #3165

Answered by thoughtpolice
Brixy asked this question in Q&A
Discussion options

You must be logged in to vote

To give an immediate answer your question using the merge workflow: jj new can create a merge with any number of parents. So you don't need to do two merges, unless you want to. Instead, you can run this, assuming your original commit graph is what things look like:

jj new o w r
jj describe -m 'merge: add-a-files and add-b-files to master'
jj new # create a new working copy on top of the merge commit

This will result in a graph that looks like this, assuming the base is X, and the merge commit commit is M

   ------> A1 -----> A2
  /                    \
X --------------------> M ---> @
  \                    /
   ------> B1 -----> B2

So, the resulting merge commit M has 3 parent commits:…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Brixy
Comment options

You must be logged in to vote
0 replies
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