码迷,mamicode.com
首页 > 其他好文 > 详细

git 恢复某个文件到指定版本

时间:2016-04-05 20:14:54      阅读:613      评论:0      收藏:0      [点我收藏+]

标签:checkout   git   commit   

git log 文件路径       查看文件commit id 


git reset commit_id 文件路径


git checkout -- 文件路径

git 恢复某个文件到指定版本

标签:checkout   git   commit   

原文地址:http://anbaojia.blog.51cto.com/9494280/1760486

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!