How to restore changes from commit in git?
This question already has an answer here:
Is it possible that I checkout the commit I made with the RIGHT feature
First of all read the attached full answer in the comments.
To summary what you can now is simply use the git reflog
to checkout the desired commit.
Here is how a reflog will look like:
链接地址: http://www.djcxy.com/p/18814.html上一篇: 如何将项目恢复到之前在android studio中的提交
下一篇: 如何恢复从git提交更改?