git上传代码到GitHub仓库报错

想到要把之前电脑里的代码上传到GitHub仓库,也是好久没用过了,先熟悉一下基本的步骤

1、git clone url(https or ssh)

ssh因为没有配置也就没有用

2、cd 新生成的GitHub仓库同名的文件夹下

3、git add .

点号不能省略

4、git commit -m "填写提交信息,可以加入备注信息"

5、git push -u origin master

将提交到本地的代码push到GitHub仓库,可能会输入用户名和密码

然后很奇怪的遇到了下面的问题:

$ git push -u origin master
 Counting objects: 509, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (479/479), done.
Writing objects: 100% (509/509), 46.90 MiB | 4.37 MiB/s, done.
Total 509 (delta 43), reused 0 (delta 0)
remote: Resolving deltas: 100% (43/43), done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054

然后搜了博客里提到的提高缓存

git config http.postBuffer 524288000

然鹅,并没有什么用,继续研究(Google)

嗯....

git上传代码到GitHub仓库报错

挨着看了一遍,各种试,都没啥作用....

然后突然想到,为啥要加大缓存,为啥这次提交这么慢,为啥还要修改默认设置对代码进行压缩等等

难道是?

没错,太大了。。。。。

其实中间也提示过,不过当时脑子比较混乱没有注意

remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File kaggle/alimm/al_train.txt is 529.09 MB; this exceeds GitHub's file size limit of 100.00 MB
To https:~~~~~~~~~~~~~~~~~~~~

然后尝试了下只上传一部分....嗯....果然很顺利

还以为因为好几年没用了,然后换了电脑,是设置不对呢,研究了一下午就是这么个错误也是很无语啊

附上GitHub地址吧,还是没有整理过的乱七八糟仓库,Mark一下,等着整理好了再来删掉

https://github.com/wangleixin666