简体   繁体   中英

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?

Just to be sure, try locally to remove your large file from the repository history , following " Removing sensitive data from a repository ", which typically involves using the BFG repo cleaner .

Then force push your repo (since its history will have changed) and see if you still have the error message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM