github 上传文件太大被拒绝

问题描述

git 提交代码到 github 报错,信息如下:

remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 009895fb6cf1ddbf7a86e018050f9c09
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File files/jdk/jdk-7u65-windows-x64.exe is 129.69 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/thebigdipperbdx/SpringBootList.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/thebigdipperbdx/SpringBootList.git'

解决方案

1、移除错误缓存

git rm --cached files/jdk/jdk-7u65-windows-x64.exe

2、编辑最后提交信息
编辑最后提交信息,修改 log 信息后保存返回。(即 vi 编辑)

 git commit --amend

3、重新提交

git push

相关文档

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值