美文网首页
git commit大文件,不能push

git commit大文件,不能push

作者: looha | 来源:发表于2021-02-18 10:42 被阅读0次

git commit 超过仓库限制大小的大文件,导致不能push。
github或者码云,一般限制大小是100M,commit超过100M的文件会导致push失败。
解决办法有两个

1、充钱,提升仓库单文件存储大小

2、删除本地大文件git跟踪

/*
 xxxx.zip 为大小超限的文件,push失败后,会提示大文件名
*/
git filter-branch --tree-filter 'rm -f xxxx.zip' HEAD   

执行后,看到追踪文件被重写,搞定,在进行push即可


image.png

相关文章

网友评论

      本文标题:git commit大文件,不能push

      本文链接:https://www.haomeiwen.com/subject/joygxltx.html