没有合适的资源?快使用搜索试试~ 我知道了~
caojx-git#learn-java-notes#Git处理 GitHub 不允许上传超过 100MB 文件的问题1
需积分: 0 0 下载量 157 浏览量
2022-07-25
14:30:39
上传
评论
收藏 4KB MD 举报
温馨提示
试读
1.1 移除错误缓存 1.2 重新提交 2.2 将想要保存的大文件正常添加进 git 2.3 正常进行提交&推送 2.4 补充技巧 2.5 常见问题
资源推荐
资源详情
资源评论
# Git处理 GitHub 不允许上传超过 100MB 文件的问题
参考原文:http://www.liuxiao.org/2017/02/git-%E5%A4%84%E7%90%86-github-%E4%B8%8D%E5%85%81%E8%AE%B8%E4%B8%8A%E4%BC%A0%E8%B6%85%E8%BF%87-100mb-%E6%96%87%E4%BB%B6%E7%9A%84%E9%97%AE%E9%A2%98/
其他解决方案:
http://jingpin.jikexueyuan.com/article/36116.html
最近在使用 Github 时候遇到一个问题,提示文件过大不允许上传:
```shell
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 150be0ada58c003160b0798a30b48c46
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File notes/spring/Spring+Cloud与Docker微服务架构实战.pdf is 100.71 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/caojx-git/learn.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/caojx-git/learn.git'
```
但有的时候我们还是需要上传这些大文件,这时候怎样做呢?
## 一、移除错误重新提交
### 1.1 移除错误缓存
首先应该移除所有错误的 cache,对于文件:
```shell
git rm --cached path_of_a_giant_file
```
对于文�
点击阅读更多
资源评论
MurcielagoS
- 粉丝: 16
- 资源: 320
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功