git rm -rf dirgit add .git commit -m 'remove dir'git push origin master //dir是要删除的文件夹路径 转载于:https://www.cnblogs.com/xulei1992/p/5650399.html