git将单个文件恢复到历史版本的正确方法如下:
   git reset commit_id 文件路径
   git checkout -- 文件路径

 

posted on 2016-11-25 16:33  jzfan  阅读(212)  评论(0编辑  收藏  举报