git-rm
从仓库索引和本地文件系统中删除文件。 更多信息:https://git-scm.com/docs/git-rm.
git rm {{路径/到/文件}}
git rm -r {{路径/到/目录}}
git rm --cached {{路径/到/文件}}