如何恢复以前的本地历史记录? [英] How do I recover previous Local histories?
问题描述
我的机器最近没有关闭就关机了,我的IDEA工作区似乎有所不同.我正在处理的文件现在只有一个空格.而且它的本地历史记录是空的,我该如何找回该文件.该文件已存在6个月以上.我真的不知道该怎么办.有什么方法可以从过去的本地历史记录或缓存中恢复?
My machine went off recently without shutting down and my IDEA workspace seems to be different. The file I was working on now only has a blank spaces. and the local history for it is empty how can I get this file back. The file is more than 6 months old. I really don't know what to do. Is there a way I can recover from past local histories or the cache?
推荐答案
我终于解决了它:
我尝试使用 recuva 从我的src
文件夹中获取删除历史记录,能够获取空白文件的 jb_bak 和 jb_old .
但是无法从 jb_bak 或 jb_old 恢复原始文件.
我下载了
How I finally solved it:
I tried using recuva to get the delete history from my src
folder, I was able to get the jb_bak and jb_old of the blank file.
wasn't able to recover the original file from the jb_bak or jb_old though.
I downloaded easus data recovery wizard
并指定我项目的jar生成以恢复已删除的类输出(因为我的src
类文件已被覆盖),即
C:
\ IdeaProjects
\ Yuppies
\ src
\ main
\ resources
\ Jars
\ out
\ production
\ Jars
\ yars
\ ...
and specified my project's jar production in order to recover the deleted class outputs(since my src
class files were overwritten already) i.e.
C:
\ IdeaProjects
\ Yuppies
\ src
\ main
\ resources
\ Jars
\ out
\ production
\ Jars
\ yars
\ ...
Yars
是包含我的课程 @ src
Yars
was the folder containing my classes @src
对于遇到类似问题的任何人,如果以上操作均无效,则可能需要尝试检查适用于您的项目的以下路径(我的项目名称为 Yuppies )或者如果您想将以上结果与这些结果进行比较,以便获得最大/最新更新的文件副本:
For anyone who runs into this similar problem you may want to try checking the following paths as it applies for your project(my project's name was Yuppies ) if the above doesn't work or if you want to compare results above with these so you can get the copy of your file with the largest size/the most recent update:
C:\ IdeaProjects \
Yuppies
\ target \ classes \ Jars \ out \ production \ Jars \yars
\ ...
C:\IdeaProjects\
Yuppies
\target\classes\Jars\out\production\Jars\yars
\ ...
OR
C:\ IdeaProjects \
Yuppies
\ target \ classes \yars
\ ...
C:\IdeaProjects\
Yuppies
\target\classes\yars
\ ...
如果这还是行不通的,请尝试检查intellij是否构建了原始类的jar @
C:\ IdeaProjects \
Yuppies
\ target \ classes \ Jars \ out \ artifacts \ ...
C:\IdeaProjects\
Yuppies
\target\classes\Jars\out\artifacts\ ...
,看看是否可以反编译jar文件.
这篇关于如何恢复以前的本地历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!