Github上传大文件报错,单个文件不得超过100MB

 报错信息

remote: error: See https://gh.io/lfs for more information.
remote: error: File xxx/xxx is 144.72 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.

解决方法,找到单个的大文件,用winRAR压缩为多个分卷,每个分卷最大为100MB即可

 然后使用git filter-branch 命令把关联的所有commit进行修改,删除在commit区存在的大文件

git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch xxx/xxx" --prune-empty --tag-name-filter cat -- --all

然后再正常提交即可

git push origin master

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值