git - Git continues to push files that I already deleted
问题描述
Since I have a large file in the commit, git shows error of file being too large. I deleted the original file, and I committed it, the git shows the modes are deleted. But when I tried to push them to github, the error message shows again saying the file is too big. But I've already deleted it?
remote: error: File public/images/projects/project2/video.mp4 is 163.69 MB; this exceeds GitHub's file size limit of 100.00 MB
But the directory does not have project2 this folder anymore. Why this happens?
解决方案
可以肯定的是,尝试在本地从存储库历史记录中删除您的大文件,遵循“从存储库中删除敏感数据”,这通常涉及使用BFG 存储库清理器。
然后强制推送你的回购(因为它的历史会改变),看看你是否仍然有错误消息。
推荐阅读
- java - Android-Java 列表到字符串,反之亦然
- laravel - 运行内置授权中间件时出现异常
- amazon-web-services - 负载均衡器 cookie 粘性和用于存储用户会话的 ElastiCache 有什么区别?
- multithreading - 所有线程都在 RUNABLE 状态下阻塞 10 小时
- .net - Linux上的.net核心控制台应用程序-要执行的应用程序不存在
- sql - 用于分组 7days 组的 SQL 查询
- swift - 获取 Swift 运行时错误:“无法结束 BackgroundTask:不存在标识符为 1 的后台任务”
- php - 写入 csv 文件。' ; ' 对于下一列不起作用
- apache-spark - 如何减慢Kafka Producer的写入速度?
- vue.js - 如何获取历史路由器的路由器名称