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

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

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

相关推荐
_codemonster1 天前
git 容易混淆的点
git
Electrolux1 天前
[onlyoffice-v9]纯前端怎么实现编辑预览office
前端·javascript·github
用户074740781651 天前
rust-bindgen:让 Rust 调用 C 库变成一行命令的事
github
_codemonster1 天前
Git 最常用操作和原理
大数据·git·elasticsearch
momo在敲码1 天前
Claude Sub-agents 完整可跑代码:3 个 design pattern + omni-report 真实编排(45 min → 8 min
人工智能·github
JavaGuide1 天前
GitHub 6.2 万 Star!Claude Code / Codex 的项目知识图谱工具火了。
github·ai编程·claude
吃口巧乐兹1 天前
理解 Agent 中的 Slash Command:从概念到自定义命令实践
java·github
逛逛GitHub1 天前
6 月底截止,Claude Code 免费白嫖 Qwen3.6,Token 无限量。
github
yyuuuzz1 天前
AI模型部署中的常见稳定性问题
运维·服务器·网络·数据库·人工智能·云计算·github
阿里嘎多学长1 天前
2026-06-07 GitHub 热点项目精选
开发语言·程序员·github·代码托管