GitHub上传文件失败

记一次使用commit提交大文件无法推送到远程库解决问题过程及git rebase使用

 

ERROR:

Enumerating objects: 204, done. Counting objects: 100% (204/204), done. Delta compression using up to 8 threads Compressing objects: 100% (158/158), done. error: RPC failed; curl 55 Send failure: Connection was aborted fatal: the remote end hung up unexpectedly| 11.00 KiB/s Writing objects: 100% (172/172), 28.02 MiB | 178.00 KiB/s, done. Total 172 (delta 102), reused 0 (delta 0), pack-reused 0 fatal: the remote end hung up unexpectedly Everything up-to-date

根据解决问题过程中找到的一些解决方法的记录:

大文件无法push到远程仓库问题

  • commit的大文件无法push到远程库解决办法
  • git filter-branch命令:

git commit后的回滚

  • git reset --hard 丢弃最新的提交
  • git rebase -i 丢弃指定提交

git rebase

  • git rebase执行失败后的退出
  • git rebase成功后的回退

解决这个问题并没有特别的(删除提交历史中某个文件,然后重新push),但是由于开始的使用失误,中间有使用git rebasegit reset命令处理,所以特此记录下

 

问题

首先,故事(事故)的起因是这样的。

某次git push(类似测试使用,没有分支)到远程仓库时发生如下无法提交大文件的报错(大文件是一个pdf文件)

$ git push
Enumerating objects: 204, done.
Counting objects: 100% (204/204), done.
Delta compression using up to 4 threads
Compressing objects: 100% (183/183), done.
Writing objects: 100% (187/187), 419.00 MiB | 2.21 MiB/s, done.
Total 187 (delta 21), reused 0 (delta 0)
remote: Resolving deltas: 100% (21/21), completed with 12 local objects.
remote: P
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ML_GearYe

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值