git使用问题二删除远程仓库文件,本地保留不动

git rm --cached filename/-r directory
git commit "xxxx"
git push
原文地址:https://www.cnblogs.com/a-s-m/p/12298521.html