How to return to working commit after duplicate + rebase without creating new on top of it? #4003
Answered
by
emilazy
istudyatuni
asked this question in
Q&A
-
$ jj git init
$ echo A > a.txt; jj commit -m 'A'
$ echo B > b.txt; jj commit -m 'B'
$ echo C > c.txt; jj desc -m 'C'
$ jj log
@ plqzuytz <..> 2024-07-01 23:37:19 eaf87883
│ C
◉ xtouwovw <..> 2024-07-01 23:37:07 8acbcce1
│ B
◉ wkqrqnyz <..> 2024-07-01 23:37:02 c7ea2260
│ A
◉ zzzzzzzz root() 00000000
$ jj duplicate xtouwovw
$ jj log
◉ qryuwptk <..> 2024-07-01 23:38:29 aaa61178
│ B
│ @ plqzuytz <..> 2024-07-01 23:37:19 eaf87883 # working commit not changed
│ │ C
│ ◉ xtouwovw <..> 2024-07-01 23:37:07 8acbcce1
├─╯ B
◉ wkqrqnyz <..> 2024-07-01 23:37:02 c7ea2260
│ A
◉ zzzzzzzz root() 00000000
$ jj rebase -r qryuwptk -d zzzzzzzz
$ jj log
◉ qryuwptk <..> 2024-07-01 23:39:42 597bcda8
│ B
│ @ plqzuytz <..> 2024-07-01 23:37:19 eaf87883 # how to return to this?
│ │ C
│ ◉ xtouwovw <..> 2024-07-01 23:37:07 8acbcce1
│ │ B
│ ◉ wkqrqnyz <..> 2024-07-01 23:37:02 c7ea2260
├─╯ A
◉ zzzzzzzz root() 00000000 |
Beta Was this translation helpful? Give feedback.
Answered by
emilazy
Jul 1, 2024
Replies: 1 comment 2 replies
-
Are you looking for |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
istudyatuni
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you looking for
jj edit
?