分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 网页技术

Git上传文件容量大小限制

发布时间:2023-09-06 01:43责任编辑:林大明关键词:暂无标签

使用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,具体的代码当时忘了考下来了,反正就是跟在这个错误后面的。解决完这个问题没想到又出现了一个错误

batchresponse: Git credentials for https://github.com/caijiangyao1991/aliGame.gitnot found:

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

git config --globalcredential.helper store

Git上传文件容量大小限制

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

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved