Replies: 2 comments 13 replies
-
The easiest way to unhide the old commit would probably be to do |
Beta Was this translation helpful? Give feedback.
-
Just starting out with jj, I accidentally abandoned the initial 4 changes in my repo while fumbling with commands I meant for deleting a bookmark. I didn't catch it in time to do an undo and have been searching for how to un-abandon changes, and found my way to this thread. I've now used I see If there's no good way to un-abandon changes at the moment, I'm hoping something like this can be added to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This seems like it should be obvious, but I can't find documentation for it: with
jj evolog
, you can see the history of a change over time. Is it possible to use this information to set a change back to a prior commit state?Just restoring the contents from the earlier commit doesn't preserve the metadata, so it will have a different commit ID.
This can be done with the
operation
log by reverting to a particular repository state or undoing a sequence of operations, but it seems like it should be simple to modify the change directly and restore a previous commit. Maybejj abandon <change>
followed by some way of un-hiding thecommit
by ID?Beta Was this translation helpful? Give feedback.
All reactions