git移除暂存区文件: 仅将文件从暂存区移除,但是保留工作目录中的该文件 git rm --cached application.yml 如果删除不成功,可以使用-f 强制删除 git rm -f --cached application.yml