git rm --cached <file_name>
git commit “删除了<file_name>文件"
git rm --cached <file_name> will remove the file from the stage.
git rm --cached <file_name>
git commit “删除了<file_name>文件"
git rm --cached <file_name> will remove the file from the stage.
转载于:https://www.cnblogs.com/icenter/p/5267696.html