git删除远程服务的文件夹

首先查看当前分支:git branch -a

删除缓存的idea:git rm --cached -r .idea

提交gitiginore文件,将.idea从源代码仓库中删除(-m 表示注解):  git commit -m "commit and remove .idea"

推送远程端:git push origin develop

删除文件夹完毕。

原文地址:https://www.cnblogs.com/zuokun/p/10868892.html