1、将.idea目录加入ignore清单
.gitignore内容:

/.idea/
2、从git中删除idea

git rm --cached -r .idea

3、将.gitignore文件加入git
git add .gitignore


4、提交gitiginore文件,将.idea从源代码仓库中删除
git commit -m "gitignore提交删除.idea"

5、push到服务器:把master分支push到远程origin主机
git push origin master

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-01-29
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
猜你喜欢
  • 2021-10-08
  • 2021-10-06
  • 2021-09-28
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
相关资源
相似解决方案