Appearance
git rm <file>
如果要删除已经放到暂存区的文件,则必须使用强制删除选项 -f
git rm -f <file>
想让文件保留在磁盘,但是并不想让 Git 继续跟踪。 使用 --cached 选项
git rm --cached <file>