Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA Cannot Undo

I am working on a project at Intellij IDEA. I moved refactored some packages. However I want to undo my changes. When I click revert button it says

Cannot Undo

and shows a list under that:

Following files affected by this action have been already changed

How can I revert my changes because I lost some packages and classes. Does Intellij IDEA keeps them inside a temporary folder?

PS: I use open jdk 1.6.0 on a 64 bit Ubuntu computer.

like image 343
kamaci Avatar asked Nov 12 '11 17:11

kamaci


2 Answers

IntelliJ IDEA has a great feature called as local history. I could revert my changes. There is a video gives a detailed example for it:

http://www.jetbrains.com/idea/training/demos/local_history.html

You can get more information from here: http://jetbrains.com/help/idea/2016.1/using-local-history.html

like image 129
kamaci Avatar answered Sep 22 '22 11:09

kamaci


Undo it through VCS --> Local History --> Show History.

like image 41
Sunil Kumar Avatar answered Sep 22 '22 11:09

Sunil Kumar