我是靠谱客的博主 朴素人生,这篇文章主要介绍github push文件过大,error: GH001: Large files detected. this exceeds GitHub's file size limit of 100 MB,现在分享给大家,希望可以做个参考。
50Mb push 警告
remote: warning: Large files detected.
# remote: warning: File big_file is 55.00 MB; this is larger than GitHub's recommended maximum file size of 50 MB
100Mb push 限制
remote: warning: Large files detected.
# remote: error: File giant_file is 123.00 MB; this exceeds GitHub's file size limit of 100 MB
移除大文件,注意备份。
$git rm --cached giant_file
# Stage our giant file for removal, but leave it on disk
$git commit --amend -CHEAD
# Amend the previous commit with your change
# Simply making a new commit won't work, as you need
# to remove the file from the unpushed history as well
$git push
# Push our rewritten, smaller commit更多信息https://help.github.com/articles/working-with-large-files/
最后
以上就是朴素人生最近收集整理的关于github push文件过大,error: GH001: Large files detected. this exceeds GitHub's file size limit of 100 MB的全部内容,更多相关github内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复