git rm file将文件从缓存区和你的硬盘中(工作目录)删除

git rm demo1.txt

命令行输出

git rm使用_rm


git rm --cached file在工作目录中留着该文件

git rm --cached hello.php

命令行输出

git rm使用_git_02