此文件不上传也可以, 所以解决方法是在git仓库把它去掉
1 先在git 缓存删除 :
1 |
git rm -r --cached .idea |
2 再把 idea 文件夹加到 gitignore
1 |
adding /.idea to .gitignore |
解决方法来源: http://stackoverflow.com/questions/57091527/what-exactly-is-idea-workspace-xml