251 次浏览

commit 一次文件成功但随后pull push向远程同名分支推送一直失败,卡在compile处:

随后报错,内存溢出

解决方案:

  1. 按照stackOverflow 描述配置idea运行内存: increasing the size (Xms2048mXmx2048m) in *.vmoptions,配置后idea打开项目开始报错:Error:Abnormal build process termination
  2. 解决打开项目报错:File -> settings ->Build,Execution,Deployment -> Compiler -> 更改Build process heap size (Mbytes) 数值,设置【当前机器(ram 10G)正常运行代码】为700Mbytes,同时将工程重新初始化,把.idea文件价删除,重新导入项目构建。
  3. 回想之前同事推送时所做详细操作步骤,去掉idea push按钮下的git hooks的勾选

    重新push 成功

  • 注:初步了解git hooks 关于项目提交规则

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注