git bash上传本地文件报错debug

报错信息

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上,然后贴一下网盘的链接即可。

相关推荐

  1. git bash本地文件debug

    2024-04-28 21:04:03       14 阅读
  2. 文件总结

    2024-04-28 21:04:03       31 阅读
  3. Python - requests 文件

    2024-04-28 21:04:03       42 阅读
  4. minio本地文件/远程url

    2024-04-28 21:04:03       15 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-28 21:04:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-28 21:04:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-28 21:04:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-28 21:04:03       20 阅读

热门阅读

  1. Scala Extention

    2024-04-28 21:04:03       9 阅读
  2. 使用 GORM 自定义类型:解决问题与技巧分享

    2024-04-28 21:04:03       15 阅读
  3. Mockito Mybatis-plus 单元测试

    2024-04-28 21:04:03       12 阅读
  4. Qt——置灰窗口

    2024-04-28 21:04:03       11 阅读
  5. 官网设计UI设计需要考虑哪些?

    2024-04-28 21:04:03       11 阅读
  6. RTCRTC

    2024-04-28 21:04:03       9 阅读
  7. Unity中的C#事件与回调:一个简单的实例分析

    2024-04-28 21:04:03       13 阅读
  8. Lua语法

    Lua语法

    2024-04-28 21:04:03      13 阅读
  9. Excel常用函数

    2024-04-28 21:04:03       12 阅读
  10. 发布自己的npm包

    2024-04-28 21:04:03       14 阅读
  11. 【VUE】moment.js 时间日期格式化工具

    2024-04-28 21:04:03       12 阅读
  12. vue3 ts table合计样式更改

    2024-04-28 21:04:03       12 阅读