当前位置:   article > 正文

github上传文件太大无法上传_remote: error: gh001: large files detected. you ma

remote: error: gh001: large files detected. you may want to try git large fi

21:49    Can't finish GitHub sharing process
            Successfully created project 'objectidentify' on GitHub, but initial push failed:
            Enumerating objects: 29, done.
            Delta compression using up to 12 threads
            Total 29 (delta 0), reused 0 (delta 0), pack-reused 0
            remote: error: Trace: 4c691410ba6b04b8039a3e17d158a2a2f26e9fdc0cd979acc44e674c9db77a9f
            remote: error: See http://git.io/iEPt8g for more information.
            remote: error: File dataset/cifar-10-python.tar.gz is 162.60 MB; this exceeds GitHub's file size limit of 100.00 MB
            remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
            failed to push some refs to 'https://github.com/GhhosttTT/objectidentify.git'

 

解决方法:

terminal中输入:

git filter-branch -f --prune-empty --index-filter "git rm -rf --cached --ignore-unmatch dataset/cifar-10-python.tar.gz" --tag-name-filter cat -- --all

 再运行就好了

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

闽ICP备14008679号