首页 > 其他 > 详细

git push 单个文件时超过100M报错,解决方案

时间:2020-05-27 21:23:15      阅读:1651      评论:0      收藏:0      [点我收藏+]
  • 报错信息
    • remote: error: File: ad29d743061366b6a2b30b347c6907934ac7152e 101.85 MB, exceeds 100.00 MB.
      remote: Use command below to see the filename:
      remote: git rev-list --objects --all | grep ad29d743061366b6a2b30b347c6907934ac7152e
      remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)
      To https://gitee.com/didi.git/xiaoshixun.git
       ! [remote rejected] master -> master (pre-receive hook declined)
      error: failed to push some refs to https://gitee.com/didi.git/xiaoshixun.git

       

  • 解决方法
    • git lfs help  查看lfs帮助
      
      ‘‘‘
      下载git lfs    链接https://git-lfs.github.com/
      1. git lfs install    
      
      2.git lfs track "*.iso"  #iso为后缀名,根据自己的替换 
      
      3. git add .gitattributes
      
      4.      git add file.iso
              git commit -m "Add disk image"
              git push
      5.如果有失败情况,清空一下缓存
         git rm -r --cached
      ‘‘‘

       

git push 单个文件时超过100M报错,解决方案

原文:https://www.cnblogs.com/u-damowang1/p/12976576.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!