git删除文件

git rm [文件名] --cache

如果是目录使用以下命令

git rm -r [目录名] --cache

2018/12/03更新

原文地址:https://www.cnblogs.com/tangyouwei/p/5135654.html