# We are in a repo with three commits, all # editing the same line: $ jj log @  ovswnquy jjfan@example.com 2025-12-23 20:47:56 a198ed1c │  (empty) (no description set) ○  ozsvrstx jjfan@example.com 2025-12-23 20:47:56 third de0f46c2 │  third ○  ksnxoqto jjfan@example.com 2025-12-23 20:47:56 second 3ec6d956 │  second ○  tplkpxsn jjfan@example.com 2025-12-23 20:47:56 first 2b9ad113 │  first ◆  zzzzzzzz root() 00000000 $ jj diff -r first Added regular file file:         1: first $ jj diff -r second Modified regular file file:    1    1: firstsecond $ jj diff -r third Modified regular file file:    1    1: secondthird # Let's reorder the second and third commits: $ jj rebase -s third --onto first ... (output redacted) ... $ jj rebase -s second --onto third Rebased 1 commits to destination $ jj log @  ovswnquy jjfan@example.com 2025-12-23 20:47:56 7fc74d13 (conflict) │  (empty) (no description set) │ ○  ksnxoqto jjfan@example.com 2025-12-23 20:47:56 second 95a37cf3 ├─╯  second ×  ozsvrstx jjfan@example.com 2025-12-23 20:47:56 third ca9de280 (conflict) │  third ○  tplkpxsn jjfan@example.com 2025-12-23 20:47:56 first 2b9ad113 │  first ◆  zzzzzzzz root() 00000000 # The commit labeled "third" has a conflict, as expected. What's more # interesting is that the top commit has no conflict! That's because it # has the changes from all three commits applied to it. #  # Let's verify that by looking at its contents: $ jj new second Working copy  (@) now at: trxmzqzy 2ca15ab8 (empty) (no description set) Parent commit (@-)      : ksnxoqto 95a37cf3 second | second Added 0 files, modified 1 files, removed 0 files $ cat file third # Let's now instead make "second" and "third" # sibling and merge them: $ jj rebase -s second --onto first Rebased 2 commits to destination Working copy  (@) now at: trxmzqzy 89f83e65 (empty) (no description set) Parent commit (@-)      : ksnxoqto 4a9f92a4 second | second Added 0 files, modified 1 files, removed 0 files $ jj new second third -m merged Working copy  (@) now at: prkpnozk fc1576fe (empty) merged Parent commit (@-)      : ksnxoqto 4a9f92a4 second | second Parent commit (@-)      : ozsvrstx ca9de280 third | (conflict) third Added 0 files, modified 1 files, removed 0 files $ jj log @    prkpnozk jjfan@example.com 2025-12-23 20:47:57 fc1576fe ├─╮  (empty) merged │ ×  ozsvrstx jjfan@example.com 2025-12-23 20:47:56 third ca9de280 (conflict) │ │  third ○ │  ksnxoqto jjfan@example.com 2025-12-23 20:47:57 second 4a9f92a4 ├─╯  second ○  tplkpxsn jjfan@example.com 2025-12-23 20:47:56 first 2b9ad113 │  first ◆  zzzzzzzz root() 00000000 # Again, because the merge commit has the # changes from all three commits, it has no # conflict.