Git recover uncommitted changes

Foy anyone who is facing this problem in IDEs, there is a solution.

Search for the IDE editor history files of your IDE. I had a problem with Android Studio, so here I will give you a solution for Android Studio.

For example: In Android Studio you can always see the previous files by right clicking on the project folder → Local HistoryShow History.

You can see the change history of files and you can also open the files and compare it with new files side by side. If you need the old code, just copy paste it from there.


If the changes had never been committed, stashed, or staged, then you're out of luck. If they have, then you should be able to get your changes back by looking for them in git reflog.

Tags:

Git

Recover