i reset my head to a few commits back in android studio and chose reset type as hard. I lost a weeks work. Is there any hope to undo this ? I am using android studio and it has GUI built in options to do all git related functions so i never used git bash (or whatever terminal is used for git). There is a solution here but it used terminal so i asked again if anyone knows how to do it using android studio itself.
It's likely that you can use Android Studio's Local History to restore the changes. Right click the root directory of your project, select Local History | Show History... from the menu. In the history, you'll find an "External change" entry corresponding to the 'git reset' command that you performed. You can select the entry below that and press the "Revert" button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With