我是靠谱客的博主 朴素人生,最近开发中收集的这篇文章主要介绍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 push文件过大,error: GH001: Large files detected. this exceeds GitHub's file size limit of 100 MB所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(60)

评论列表共有 0 条评论

立即
投稿
返回
顶部