Menu

GitHub Push Rejected: "File Exceeds 100 MB" (GH001) — Fix It With filter-repo or LFS
📰

GitHub Push Rejected: "File Exceeds 100 MB" (GH001) — Fix It With filter-repo or LFS

DEV Community: github·Libme·3 days ago
#91QED22c
#devtogithub#technology#devto#dev#file
Reading 0:00
15s threshold

Deleting the big file in a new commit does not fix this error, because Git still carries the file in an earlier commit and GitHub rejects the whole push. You have to either rewrite history so the blob never existed ( git filter-repo ), or move the file to Git LFS and rewrite history so old commits point to LFS instead ( git lfs migrate ). Pick filter-repo if the file should not be in the repo at all, LFS if it should be versioned but is legitimately large.

What does the error actually look like?

remote: error: Trace: 3f1c... remote: error: See https://gh.io/lfs for more information. remote: error: File data/embeddings.bin is 143.21 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. !…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.