git 还原某个文件到特定版本

1、先使用 git log 查看需要还原的版本号

2、git checkout <版本号> <文件相对路径>

3、git commit -m "xxx"

原文地址:https://www.cnblogs.com/eleven24/p/8966552.html