【发布时间】:2021-06-24 02:59:29
【问题描述】:
起初我创建了一个新分支来推送代码,然后它给了我 src.zip 大文件的错误,所以我通过文件夹删除了那个大文件,我再次推送了相同的代码,它仍然显示我已经删除的大文件错误。我也创建了一个新的分支来推送,但它也显示了这个分支上大文件的相同错误。新手请帮忙。
Uploading LFS objects: 100% (304/304), 307 MB | 1.1 MB/s, done
Enumerating objects: 1210, done.
Counting objects: 100% (1210/1210), done.
Delta compression using up to 4 threads.
Compressing objects: 100% (774/774), done.
Writing objects: 100% (788/788), 218.86 MiB | 6.96 MiB/s, done.
Total 788 (delta 257), reused 0 (delta 0)
remote: Resolving deltas: 100% (257/257), completed with 81 local objects.
remote: warning: File src/doctorPhone/RaxaFlutter/.dart_tool/flutter_build/2df7223b49177d7318e9bb97b2996866/app.dill is 54.92 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: f7149ed9934cffbf584a9a95455829192e42d3caf9ecb80f50de60b697395238
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File src.zip is 169.55 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/usename/repoName.git
! [remote rejected] hipconsent -> hipconsent (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/usename/repoName.git'
【问题讨论】:
-
jurez 的回答正确地建议首先咨询所有者,除非您非常确定不需要相关的特定文件。尝试了解他们建议如何存储该特定大文件。通常,文件大小超过 50 MB 时会引发 git 警告,而文件大小超过 100 MB 时会引发错误。管理员似乎配置了不同的大小限制。
标签: git github git-branch git-bash git-lfs