git push超过100MB大文件失败(remote: fatal: pack exceeds maximum allowed size)

push代码的时候,有时会出现如下问题

remote: fatal: pack exceeds maximum allowed size

error: failed to push some refs to 'git.n.xiaomi.com:fuzheng1/nl2sql.git'

解决方案:

将本地 http.postBuffer 数值调整到GitHub服务对应的单次上传大小配置

bash 复制代码
# 方法一:全局配置 git config --global http.postBuffer 524288000  
或者  
# 方法二:当前仓库配置 git config http.postBuffer 524288000

查看是否配置成功

bash 复制代码
# 查看当前的Git配置
git config --list
相关推荐
糖少主29 分钟前
WSL中使用Beyond Compare 3/4/5作为difftool
git·wsl·beyond compare·difftool
console.log('npc')3 小时前
Git版本管控:git reset \+ git push \-f 原理、实操与避坑指南
git
恋喵大鲤鱼7 小时前
git reflog
git·git reflog
MatrixOrigin9 小时前
MatrixOne Git4Data 技术详解(二):从零跑通所有 Git 原语
git
anew___9 小时前
常用的 Git 工作流
git
shimly1234569 小时前
git diff 生成一部分文件的补丁
git
m0_5791466510 小时前
Git 重置模式详解:四种重置方式的原理与应用场景
git
恋喵大鲤鱼10 小时前
git grep
git·git grep
霸王龙的小胳膊11 小时前
Git基础知识
git
恋喵大鲤鱼11 小时前
git fetch
git·git fetch