🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 找回文件、目录 找回文件必须有`commit_id` **获取commit id方式** ``` $ git log ``` 按`q`关闭查看,commit id 不一定要全部复制, 仅前面6位即可 ## checkout 比如我需要找回`app/index/`目录和`woc.php`,假如`commit_id = wdnmd` ```shell $ git checkout [commit_id] 路径 $ git checkout wdnmd app/index/ $ git checkout wdnmd woc.php ```