GitHub突破解决上传100M限制

前言

博主github

博主个人博客http://blog.healerjean.com

官方方案 https://git-lfs.github.com/

HealerJean@MI-201902210704 MINGW64 /d/study/HealerJean.github.io/_posts/DDKJ (master)
$ git push origin
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 120.72 MiB | 7.48 MiB/s, done.
Total 8 (delta 4), reused 0 (delta 0)
remote: Resolving deltas: 100% (4/4), completed with 4 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: 90d5580f36ff974d67199826d55835c5
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File _posts/book/2_分布式消息中间件/《分布式消息中间件实践 》_倪炜.pdf is 151.75 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/HealerJean/HealerJean.github.io.git
 ! [remote rejected]   master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/HealerJean/HealerJean.github.io.git'

1、安装软件

https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-windows-v2.8.0.exe

2、找到我们的仓库,并cd启动到那个大文件下面打开git终端

$ git  lfs install
$ git  lfs track "分布式消息中间件实践.pdf"
git status
可以看到帮我妈生成了一个文件  /.gitattributes

git commit -m "提交大文件"
git push origin master 

3、成功

感兴趣的,欢迎添加博主微信

哈,博主很乐意和各路好友交流,如果满意,请打赏博主任意金额,感兴趣的在微信转账的时候,备注您的微信或者其他联系方式。添加博主微信哦。

请下方留言吧。可与博主自由讨论哦

微信 微信公众号 支付宝
微信 微信公众号 支付宝
posted @ 2019-08-29 11:48  HealerJean  阅读(395)  评论(0编辑  收藏  举报