git命令将单个文件回滚到之前提交版本 1、git log + fileName 例如 我们想恢复auditListLogic.go 这个文件,先进入到文件目录下,或者写全文件路径 通过git log auditListLogic.go 即可看到文件提交信息 2、git checkout 3、git staus 查看状态,重新commit 4、提交远程即可 git push origin zdm/rule-recovery