软件:git bash
已经配置ssh连接github
$ cd /c/users/john/blog/
.idea(保留工作区.idea)$ git rm --cached -r .idea
.gitiginore文件,将.idea从源代码仓库中删除(-m 表示注解)$ git commit -m "commit and remove .idea"
$ git push 原文:https://www.cnblogs.com/ifme/p/11796311.html