[SOLVED] git checkout from one branch to another deleted all local changes. How can i retrieve them?

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under
CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.


I have changes on devel branch. I checked out on master without commiting the changes. All the local changes got deleted in devel. How can I retrieve them?


Android Studio local history might help you, and see here Accidentally reverted to master, lost uncommitted changes, it really depends on your case.

Answered By – Emre Akcan

people found this article helpful. What about you?