Git上传文件容量大小限制

使用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

 

文章来自:https://www.cnblogs.com/fionacai/p/8456811.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3