Git 恢复某个文件指定版本

1.   git reflog  找到comit id 

2. git reset edf92f a.txt

3. git commit -m "ssss"

4. git checkout a.txt

 

posted @ 2017-01-03 11:31  Yeah,程序猿  阅读(939)  评论(0编辑  收藏  举报