删除文件:
git rm 文件名
删除文件夹:
git rm 文件夹名 -r -f
恢复意外删除文件夹:
git checkout 文件夹名
提交重置:
git reset --hard
Git:删除与恢复
原文:http://www.cnblogs.com/qimeng/p/7504205.html