In android studio how do I reload code files from disk?

196 views
Skip to first unread message

Gursewak Singh

unread,
Jul 10, 2019, 7:28:33 AM7/10/19
to Flutter Development (flutter-dev)

I am working on a flutter project in android studio. By mistake I run (git clean -xfd) (git stash save --keep-index) these command and my all edited file are rollbacked. My all today work is lost. Is there any way to undo or reload a file's contents from disk. Please Help me...

I tried this but not helping me Recover file in Android Studio?

Andrea Salvatore

unread,
Jul 10, 2019, 7:38:54 AM7/10/19
to Gursewak Singh, Flutter Development (flutter-dev)
Hello,
if you still have the files open on Android Studio, maybe you can do an "undo" on each file tab and return to the last version of them. I don't use Android Studio, but Visual Studio Code keeps an undoable history for each open file.
Hope it helps.
Andrea

On Wed, 10 Jul 2019 at 12:28, Gursewak Singh <gursewak...@gmail.com> wrote:

I am working on a flutter project in android studio. By mistake I run (git clean -xfd) (git stash save --keep-index) these command and my all edited file are rollbacked. My all today work is lost. Is there any way to undo or reload a file's contents from disk. Please Help me...

I tried this but not helping me Recover file in Android Studio?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/b117e567-5462-4167-8c34-49ffb74513a3%40googlegroups.com.

Gursewak Singh

unread,
Jul 10, 2019, 7:45:56 AM7/10/19
to Flutter Development (flutter-dev)
Hi, 
Thanks for you answer, Yes undo work but only 2 times not on all files.


On Wednesday, July 10, 2019 at 5:08:54 PM UTC+5:30, Andrea Salvatore wrote:
Hello,
if you still have the files open on Android Studio, maybe you can do an "undo" on each file tab and return to the last version of them. I don't use Android Studio, but Visual Studio Code keeps an undoable history for each open file.
Hope it helps.
Andrea

On Wed, 10 Jul 2019 at 12:28, Gursewak Singh <gursewak...@gmail.com> wrote:

I am working on a flutter project in android studio. By mistake I run (git clean -xfd) (git stash save --keep-index) these command and my all edited file are rollbacked. My all today work is lost. Is there any way to undo or reload a file's contents from disk. Please Help me...

I tried this but not helping me Recover file in Android Studio?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.

Gursewak Singh

unread,
Jul 10, 2019, 11:53:49 PM7/10/19
to Flutter Development (flutter-dev)
Goto git terminal and hit the following command:

$ git stash show


Now check if you have anything kept in stash then you are lucky and hit the next command as


$ git stash apply


This is worked for me.........

Reply all
Reply to author
Forward
0 new messages