git 删除添加的文件

git rm --cached "文件"

原文地址:https://www.cnblogs.com/bruce1992/p/14504582.html