首页 > 解决方案 > 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?

标签: gitgithub

解决方案


可以肯定的是,尝试在本地从存储库历史记录中删除您的大文件,遵循“从存储库中删除敏感数据”,这通常涉及使用BFG 存储库清理器

然后强制推送你的回购(因为它的历史会改变),看看你是否仍然有错误消息。


推荐阅读