Replies: 3 comments 1 reply
-
Here is an FAQ entry that probably matches your situation: Basically, you can If you want a TUI for this, jj-fzf has an op log view where you can pick old snapshots and inject them as a commit before |
Beta Was this translation helpful? Give feedback.
-
Sometimes what I'll do is write down the git commit of my accidentally-combined commit, use the evolog (or If there have only been a few changes sometimes I'll undo/restore then manually redo things on a new commit. If I've been editing in a single editor session, sometimes I'll hold down 'undo' to the end, save, then Usually I find it's pretty hard to use |
Beta Was this translation helpful? Give feedback.
-
Yes, I usually resort to jj-split and editor-undo and other such hacks, for this sort of thing. But these all become intractable when the problem becomes sufficiently complex. Knowing that JJ does have the three commits I want, even if identifying their IDs might be nontrivial, means that there is a pure DAG-manipulation approach available, and that's what I want to explore here. So my question is specifically about
Does it boil down to a combination of
or are there some useful features I'm overlooking? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
x
and its descendanty
.y
, but accidentally usejj edit x
instead ofjj new x
.x
rather than working in a new commit (let's call itz
).I know that JJ has the three states of the working tree that I want (
x
,y
andz
) somewhere. What is a good approach to changing the DAG shown on the left (what I have) to the one on the right (what I want) ?Beta Was this translation helpful? Give feedback.
All reactions