git retrieve all files in the current directory accidentally deleted

git checkout .

Reference: http: //opentechschool.github.io/social-coding/extras/delete-restore.html

Reproduced in: https: //my.oschina.net/u/191928/blog/618633

Guess you like

Origin blog.csdn.net/weixin_33859231/article/details/91986969