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是要从历史记录中删掉的文件

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

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

相关推荐
Lcr3s5 小时前
Git基础之(0):如何在Ubuntu(Linux)上安装git
git
子林super5 小时前
顺序表用Python3定义与增删改查
github
子林super5 小时前
Python非空判断与类型检查写法
github
子林super5 小时前
Python list与array关键区别及使用场景
github
子林super5 小时前
Python中None与null的区别
github
u1301308 小时前
GitHub 热榜项目:周榜(2026-09-20)
人工智能·github
u1301309 小时前
GitHub 热榜项目:日榜(2026-09-20)
人工智能·github
逛逛GitHub9 小时前
外网 3500 万人围观的 Jev 模型,有这 10 个神奇玩法。
github
m4Rk_10 小时前
【论文阅读】Agent 记忆机制(76):SEEM——从碎片检索到完整事件重建
论文阅读·人工智能·学习·开源·github
YuePeng+10 小时前
我给 Claude Code 装了这个 SKILL,它开始自己写管理后台了
github