Replies: 2 comments 1 reply
|
Regardless of what, start with making a full backup so you can recover if you messed something up If you're fine with losing all the jj-specific data, then the easiest option would be to (if not colocated, first extract the git-dir), then remove the .jj directory and run But if you're lucky, then only the latest operation is broken. In that case, you can look at the latest few operations with and check if one of them works with If so, you can recover by manually replacing the current op hash with one that's not broken then you'll only lose the part of history that's newer than that operation. |
Uh oh!
There was an error while loading. Please reload this page.
The other day, I accidentally mounted my home drive under
/tmp. Thensystemd-tmpfileswent through and cleaned it up for me (deleted everything older than 10 days).While I was able to recover most repositories from backups (a little outdated) or git forges, some local repos still have issues because they are missing some operations it seems.
Every time I run any
jjcommand, I get the following error:I still have all files for the latest version of the repository. Is there any way to recover at least some of the history from the repository?
Or do I need to reset the repository to the latest recorded version (how?) and then commit the latest state in a single change?
All reactions