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

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

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

相关推荐
粥里有勺糖1 小时前
视野修炼-技术周刊第131期 | Bun 与 pnpm Rust 化
前端·github·agent
旅之灵夫4 小时前
【GitHub项目推荐--HyperFrames:用 HTML 写视频,为 AI Agent 而生的渲染框架】
github
峰向AI5 小时前
阿里内部用了2年的代码审查工具开源了:21k Star背后的「工业级」设计
github
zandy10115 小时前
2026vibe coding背后 :Kimi Code、Cursor、Claude Code、GitHub Copilot等五款工具架构演进全面分析
架构·github·copilot
zandy10116 小时前
网络支付合规三重门:Kimi Code、Cursor、GitHub Copilot等五款AI编程工具国内实战测评
github·copilot·ai编程
ssshooter8 小时前
Tauri + GitHub Actions 自动化发布 Android APK 技术总结
android·github·android studio
wdfk_prog8 小时前
GitHub push 失败:如何扫描并清理 Git 历史中的大文件
git·elasticsearch·github
Da Zeng9 小时前
快速搭建GitHub Page
github
明月_清风10 小时前
GitHub Actions 从入门到实战:一文搞懂 CI/CD 自动化
后端·ci/cd·github
QUOR10 小时前
Zorv AI 终端:基于 proot 沙箱的 Android 终端模拟器架构全解析
github