最稳妥的办法:
step1 本地右键删除要删除的文件夹、文件
step2 git add .或git add 路径文件名
step3 git commit -m '注释'
step4 git pull
step5 git push origin master
若这时查看远程仓库没有删除
检查是否其被.gitignore忽略
若无, 则git pull 最新代码到本地,重新执行以上步骤.