操作
- (添加/编辑
.gitignore
) - 执行
git rm --cached -r .idea
- 执行
git commit -m "remove remote .idea"
执行
git push origin master
参考资料
- Git - 从git仓库中删除.idea文件夹
Remove file from Version Control in IntelliJ IDEA
如何避免
在第一次commit前添加.gitignore
.gitignore
)git rm --cached -r .idea
git commit -m "remove remote .idea"
执行git push origin master
Remove file from Version Control in IntelliJ IDEA
在第一次commit前添加.gitignore