首页 > Web开发 > 详细

Git上传文件容量大小限制

时间:2018-02-21 16:57:17      阅读:2994      评论:0      收藏:0      [点我收藏+]

使用Git LFS突破git的100M容量限制。 

技术分享图片

1.安装Git LFS

https://git-lfs.github.com./

2.安装后把里面的git-lfs.exe放到你要上传的项目文件夹

3.在将要push的仓库里重新打开一个bash命令行

Git lfs install

Git lfs track “*.csv”

Git add .

Git commit -m “add large file”

Git push -u origin master

结果在最后push的时候发生了错误

Remote "origin" does not support the LFS locking API. Consider disabling it with 
这个错误后面直接给出了答案,只需要将LFS locking设置为false,具体的代码当时忘了考下来了,反正就是跟在这个错误后面的。解决完这个问题没想到又出现了一个错误

batch response: Git credentials for https://github.com/caijiangyao1991/aliGame.git not found:

最后通过存储认证的密码和账号才解决

git config --global credential.helper store

 

Git上传文件容量大小限制

原文:https://www.cnblogs.com/fionacai/p/8456811.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!