Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Wrong Destination

Use Case

○  h  <- You should have rebased here
○  g  <- Paste
│ ○  f
│ ○  e
│ ○  d
│ ○  c  <- Cut
├─╯
○  b
○  a
◆
  • You rebase.
$ jj rebase -s c -o g

×  f
×  e
×  d
×  c
│ ○  h
├─╯
○  g
○  b
○  a
◆
  • Conflicts.
  • You notice the rebase target was wrong.

Solution

Rebase onto the intended Change.

jj rebase -s c -o h

○  f
○  e
○  d
○  c
○  h
○  g
○  b
○  a
◆