[Git] Roll back a single file to a specified version

git log <fileName> //查看单个文件上有那些commitId
git checkout <commitId> <fileName> //将这个文件的内容回退到对应的commit

Guess you like

Origin blog.csdn.net/weixin_39085822/article/details/134197414