git大文件提交错误:

在尝试将大文件如aar、jar、so推送到GitHub时遇到错误,提示文件大小超出100MB限制。为了解决这个问题,可以使用Git LFS(Large File Storage)来存储大文件。首先,需要安装并配置Git LFS,然后通过`git lfs track`命令指定要追踪的文件类型,接着进行常规的添加、提交和推送操作。执行这些步骤后,大文件就能成功上传到GitHub了。
摘要由CSDN通过智能技术生成

错误信息:

    git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/        main:refs/heads/main 
    Pushing to github.com:OrionStarGIT/APKSamples.git
    remote: error: Trace: 19846e0b52caccb497a681b9008c153d33b3f3ccb7b16fa8f31f73f0b1102e95        
    remote: error: See http://git.io/iEPt8g for more information.        
    remote: error: File mobilertc/mobilertc.aar is 188.40 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.        
    To github.com:OrionStarGIT/APKSamples.git
     ! [remote rejected] main -> main (pre-receive hook declined)
    error: failed to push some refs to 'github.com:OrionStarGIT/APKSamp

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值