How to restore changes from commit in git?

This question already has an answer here:

  • How to move HEAD back to a previous location? (Detached head) 3 answers

  • 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提交更改?