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

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

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

相关推荐
benchmark_cc17 分钟前
如何用 Python 进行多周期 K 线合成与时区对齐?基于 QuantDash 与 Pandas 的量化数据清洗实战(附 GitHub 源码)
开发语言·python·github·盯盘·pandas·quantdash·量化数据
luyingying26 分钟前
从 400 行到 30 个文件,我只做了一件事
github
武子康34 分钟前
GitHub Actions `pull_request_target` 与 Pwn Request:高权限工作流里的 Fork 代码执行风险(2026)
人工智能·github·ai编程
不怕犯错,就怕不做35 分钟前
GIT的简单打patch应用format-patch and git am
linux·git·全文检索
Byron Loong44 分钟前
【Git】如何检查 Ubuntu 系统上 gitLab 是否开启
git·ubuntu·gitlab
武子康1 小时前
GitHub Models 7-30 退役全拆:Inventory + Capability Probe + Shadow Traffic + Brownout
人工智能·github·github copilot
咖啡星人k2 小时前
GitHub Copilot 加入 Agent 浏览器:验证 Web 应用进入编码闭环
前端·人工智能·github·copilot·前端开发·ai agent
lar_slw2 小时前
git删除上一次提交
git
C+-C资深大佬4 小时前
GitHub Actions 自动化运维实战:从零到一构建高效 CI/CD 流水线
运维·自动化·github
小弥儿14 小时前
GitHub今日热榜 | 2026-07-19
人工智能·学习·github·知识图谱