Restoring overwritten files in IDEA
Answered
I used to have a copy of the original project that I'm working on and I accidentally overwrite all the original files with the old files (project copy) so I've checked the local history of the IDE in order to restore files but the files I need does not appear in the history since it became a different project when those files were overwritten. It doesn't even contain changes from the date that I've been working. The time interval is between August 18-25 and I made most changes on August 24 which I can view none of them right now. Is there a possible way to revert changes or restore files?
Please sign in to leave a comment.
If the necessary files are not in Local History and you are not using VCS, there is no way to roll back them. See the related pages to make sure you're using Local History in the right way:
- https://www.jetbrains.com/help/idea/local-history.html#restore-changes-from-local-history .
- https://blog.jetbrains.com/idea/2020/02/local-history-in-intellij-idea-may-save-your-life-code .
To avoid such situations I'd recommend you use centralized VCS like Git.
Thank you for quick response. Actually I'm using VCS but this happened before I commit my changes. I suppose this wouldn't make any difference, would it?
Please see the related discussion at https://stackoverflow.com/a/7147749/12844632 .