git rm ""文件路径名
git rm --cached ""filename 只从git删除文件,不删除本地文件
删除文件夹
git rm -r “folder路径”

git commit -m “delete”
git push -f origin master

例如
git command 删除文件
git rm “demo/1.txt”
git commit -m “delete”
git push -f origin master

相关文章: