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

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


git reset commit_id 文件路径


git checkout -- 文件路径

你可能感兴趣的:(git,commit,checkout)