You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

推送React Native项目至GitHub时.hprof文件超出100MB大小限制的问题求助

推送React Native项目至GitHub时.hprof文件超出100MB大小限制的问题求助

嘿,我遇到了个棘手的问题,想请教下大家!

我尝试把自己的React Native项目推送到GitHub时,收到了这样的错误提示:

remote: error: File android/java_pid1566.hprof is 667.24 MB; this exceeds GitHub's file size limit of 100.00 MB

我之前看到过一个解决方案,照着步骤执行了:

  • 运行命令 git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch android/java_pid1566.hprof'
  • 在.gitignore文件里添加了 *.hprof 这一行
  • 重新执行了git add、git commit和git push操作

但结果还是弹出同样的错误,有没有大佬知道我该怎么解决这个问题呀?

备注:内容来源于stack exchange,提问作者gkeenley

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 07:57:58