尽管成功上传了LFS对象,但Git大文件存储没有推送到repo



当我运行git lfs ls-files -s时,LFS告诉我正在跟踪文件:

72face5c11 - client/data.ms/indexes/18a4b1f0-393d-434d-9129-9f15c834fb61/data.mdb (335 MB)
1c383961b7 - client/meilisearch (240 MB)

然而,当我做git push origin master时,我遇到以下错误:

Uploading LFS objects: 100% (2/2), 576 MB | 0 B/s, done.                                             
Enumerating objects: 243, done.
Counting objects: 100% (243/243), done.
Delta compression using up to 8 threads
Compressing objects: 100% (229/229), done.
Writing objects: 100% (239/239), 197.80 MiB | 1.05 MiB/s, done.
Total 239 (delta 111), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (111/111), completed with 2 local objects.
remote: error: Trace: 173bb3fae212a36eacc3d98786ab6b65b65ca04ec69e58ab805404ea536c7cbc
remote: error: See https://gh.io/lfs for more information.
remote: error: File meilisearch is 229.14 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File data.ms/indexes/18a4b1f0-393d-434d-9129-9f15c834fb61/data.mdb is 319.81 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.                                                                                      To github.com:Gaurav-Narayan-Varma/healthmaps.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'my-git-repo'

请仔细阅读错误信息。Git LFS消息和来自GitHub预接收钩子的错误是关于两个不同的文件。前者是在client/data.ms下,后者是在data.ms下。

删除GitHub抱怨的文件/目录并执行git commit --amend

还要确保在最近的提交中删除文件,并且在必要时使用git rebase - i删除祖先提交中的文件。

最新更新