zoukankan      html  css  js  c++  java
  • Fixing the “GH001: Large files detected. You may want to try Git Large File Storage.”

    Fixing the “GH001: Large files detected. You may want to try Git Large File Storage.”

    一、总结

    一句话总结:

    It turned out that GitHub only allows for 100 MB file.

    二、Fixing the “GH001: Large files detected. You may want to try Git Large File Storage.”

    转自或参考:https://medium.com/@marcosantonocito/fixing-the-gh001-large-files-detected-you-may-want-to-try-git-large-file-storage-43336b983272

    I just migrated my repositories from BitBucket to GitHub but, suddenly, I received an interesting error when I tried to push a repo with some large files inside.

    remote: error: GH001: Large files detected. You may want to try Git Large File Storage — https://git-lfs.github.com.

    remote: error: Trace: b5116d865251981c96d4b32cdf7ef464

    remote: error: See http://git.io/iEPt8g for more information.

    remote: error: File fixtures/11_user_answer.json is 131.37 MB; this exceeds GitHub’s file size limit of 100.00 MB

    It turned out that GitHub only allows for 100 MB file. The problem is that I can’t simply remove the file because it is tracked inside the previous commits so I have to remove this file completely from my repo.

    The command that allow you to do it is:

    git filter-branch -f --index-filter 
    'git rm --cached --ignore-unmatch fixtures/11_user_answer.json'

    At which point you can push the file to GitHub.

     
    我的旨在学过的东西不再忘记(主要使用艾宾浩斯遗忘曲线算法及其它智能学习复习算法)的偏公益性质的完全免费的编程视频学习网站: fanrenyi.com;有各种前端、后端、算法、大数据、人工智能等课程。
    博主25岁,前端后端算法大数据人工智能都有兴趣。
    大家有啥都可以加博主联系方式(qq404006308,微信fan404006308)互相交流。工作、生活、心境,可以互相启迪。
    聊技术,交朋友,修心境,qq404006308,微信fan404006308
    26岁,真心找女朋友,非诚勿扰,微信fan404006308,qq404006308
    人工智能群:939687837

    作者相关推荐

  • 相关阅读:
    Mac终端运行java程序
    Mac上csv导入mysql提示错误[Error Code] 1290
    Mac终端使用mysql
    将spark默认日志log4j替换为logback
    Cocos2d-x 3.x部署到安卓
    Cocos2d-x 3.0 场景切换
    visual studio 未将对象引用设置到对象的实例
    C++ list用法
    减而治之
    递归
  • 原文地址:https://www.cnblogs.com/Renyi-Fan/p/13785463.html
Copyright © 2011-2022 走看看