Reverting in Git to a specific point

This question already has an answer here:

  • How to revert Git repository to a previous commit? 38 answers

  • In order to return your local working copy to the state it was in when commit 5b31ec198 was checked in, just go to the top directory of your working copy and use git checkout 5b31ec198 .

    If you have changes that haven't been checked in, you'll need to check them in first, or use git stash save to save them for later.

    链接地址: http://www.djcxy.com/p/3158.html

    上一篇: 从git恢复推入检入

    下一篇: 在Git中恢复到特定点