Just checkout the file directly from the local server. There is no need to pull it from the remote server Because all historical versions are available locally.
git checkout file
Recover multiple deleted files at the same time: git ls-files -d | xargs -i git checkout {}
Reference: How to restore locally deleted files with git
git checkout to try an earlier version?
This software is called Git, not GitHub!
git log -S字符串
或者git log -G正则
可以搜索。具体功能和用法请见手册(man git-log
).Gitk gives it a try, brings up the visualization window, and uses the search function to search for the file.
Just checkout the file directly from the local server. There is no need to pull it from the remote server
Because all historical versions are available locally.
git checkout file
Recover multiple deleted files at the same time:
git ls-files -d | xargs -i git checkout {}
Reference: How to restore locally deleted files with git