git bash上传本地文件报错debug

文章讲述了在尝试将超过GitHub100MB文件大小限制的文件推送到GitHub时遇到的错误,推荐使用GitLargeFileStorage(LFS)进行大文件存储,并提供了一种间接上传大文件到网盘并链接到仓库的解决方案。
摘要由CSDN通过智能技术生成

报错信息

remote: error: Trace: 9621c90b124fcb8e353c79fc4011b62f684d0850872e2a5a9ee4bdf1e8092198 remote: error: See https://gh.io/lfs for more information. remote: error: File res_checkpoint/3_17_heart.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File res_checkpoint/3_16_lung.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File res_checkpoint/3_19_spleen.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File res_checkpoint/3_31_colon.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File vit_b.pth is 357.66 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:jaychan0/fine_tune_SAM_MIS.git ! [remote rejected] master -> master (pre-receive hook declined)

问题分析

这个报错是因为尝试推送的文件大小超过了GitHub的文件大小限制。GitHub的文件大小限制是100 MB,而你尝试推送的文件大小超过了这个限制。解决方法是使用Git Large File Storage(LFS)来处理大文件。可以按照报错信息中提供的链接 Git Large File Storage | Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise. 去了解如何使用Git LFS,并将大文件上传到LFS中。

问题解决

虽然说根据报错的提示内容说可以去Git LFS上传大文件,我个人还是建议直接在网盘上上传大文件,把主要的代码上传到github上,然后贴一下网盘的链接即可。

  • 13
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值