Git recover uncommitted changes

瘦欲@ 提交于 2019-11-29 10:06:04

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

Foy anyone who is facing this problem in ide's, 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 eg: In android studio you can always see the previous files , by right clicking on project folder->LOcal History->Show 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 old code just copy paste it from there.

Although the uncommitted modifications to tracked files will have been lost, I think any untracked files will still be around unless you subsequently deleted them.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!