Fork me on GitHub

Git学习 -- 删除文件

1 从版本库删除文件

git rm <file>

git commit -m "xxx"

 

2 工作区中文件被误删,但版本库中没有删除,可以恢复到工作区

git checkout -- <file>

posted @ 2015-10-22 15:15  Roronoa__Zoro  阅读(142)  评论(0编辑  收藏  举报