git解决推送时出现 this exceeds GitHub‘s file size limit of 100.00 MB

问题如下:

尝试了很多方法,即使从本地删掉也没有用,问gpt说是因为虽然从本地删掉,但是已经提交到Git的历史记录了。

所以要重写历史记录:

bash 复制代码
git filter-branch --force --index-filter \
  'git rm --cached --ignore-unmatch big_file.log' \
  --prune-empty --tag-name-filter cat -- --all

big_file.log是要从历史记录中删掉的文件

使用这个命令就可以删除:

就能成功传到远程仓库了。

相关推荐
miofly11 小时前
百度开源ERNIE 5.5 Flash Base,总参数280B仅激活14B
开源·github
dong_junshuai11 小时前
每天一个开源项目#154 Nushell:结构化管道怎样跨过文本边界
github
高调的涵涵16 小时前
删了1.2GB,.git仍是1.2GB
git
Jason_gao99916 小时前
Github Copilot 新手极速上手指南
人工智能·github·copilot
GitHub实测笔记16 小时前
hexyl 本机实测:8MiB 转储中位 102ms、od 696ms(约 6.8×);默认双面板,NO_COLOR 下要 --color=force
github
MoRay16 小时前
放弃云端 Computer Use,我用 Python 手搓了一个带“物理防呆”的本地 GUI Agent 底座
python·github
用户29914221968017 小时前
GitHub 热榜项目:日榜(2026-11-07)
人工智能·开源·github
程序员沉梦听雨18 小时前
【Git】git-submodule子模块管理
git
miofly20 小时前
GitHub 日榜趋势速报 | 2026-11-07
开源·github
miofly1 天前
Inkling 2 Small 发布,基准测试大幅超越前代但不敌同级对手
开源·github