当前位置:   article > 正文

git .hprof remote: error: File: exceeds 100.00 MB. .hprof 文件太大 不小心提交_remote: error: file: 83e85cc94000a2570dfdce22323b1

remote: error: file: 83e85cc94000a2570dfdce22323b1d77c9a6ca0d 447.97 mb, exc

完整错误

  1. remote: Powered by GITEE.COM [GNK-5.0]
  2. remote: error: File: 03a339da9645238a80724374c5e7238ef30e7d7f 182.49 MB, exceeds 100.00 MB.
  3. remote: Use command below to see the filename:
  4. remote: git rev-list --objects --all | grep 03a339da9645238a80724374c5e7238ef30e7d7f
  5. remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)
  6. To
  7. ! [remote rejected] master -> master (pre-receive hook declined)
  8. error: failed to push some refs to 'git@gitee.com:liuande/android_ad.git'

 

亡羊补牢1

.gitignore

新增一行

*.hprof

 

 

如果你本地还没删除 可以先把文件名复制一下 已经删除了可以往下走

他让使用命令去找这个文件

windows电脑是只想那个不了这个命令行的

但是windows可以通过一款软件叫cmder 来执行

 

本地拿到他的文件名称

文件名拿到了

亡羊补牢2

git rm 删除这个文件名称

亡羊补牢3 使用命令 彻底从git删除

git filter-branch --force --index-filter  "git rm --cached --ignore-unmatch java_pid22272.hprof"  --prune-empty --tag-name-filter cat -- --all

然后再次提交代码就可以了

git push

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/806642
推荐阅读
相关标签
  

闽ICP备14008679号