user@bsd:~/work/git$ rm slides.texuser@bsd:~/work/git$ git pullAlready up-to-date.user@bsd:~/work/git$ ls slides.texls: slides.tex: No such file or directory
恢复已删除的文件:
user@bsd:~/work/git$ git checkoutD .slides.tex.swpD slides.texuser@bsd:~/work/git$ git checkout slides.texuser@bsd:~/work/git$ ls slides.texslides.tex
This alias first checks to find the last commit where this file existed, and then does a Git checkout of that file path from that last commit where this file existed. Source.