尽管有 lfs,Github 仍拒绝大文件

问题描述 投票:0回答:1

我有一个用 lfs 跟踪的大文件。然而github仍然拒绝它。

我实际上能够大幅减小文件大小,但我仍然无法推动。

我已通过 lfs 验证该文件已通过

git lfs ls-files

进行跟踪

这是我尝试推送时遇到的错误:

Uploading LFS objects: 100% (23/23), 210 MB | 0 B/s, done.
Enumerating objects: 177, done.
Counting objects: 100% (177/177), done.
Delta compression using up to 12 threads
Compressing objects: 100% (102/102), done.
Writing objects: 100% (102/102), 369.48 KiB | 434.00 KiB/s, done.
Total 102 (delta 63), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (63/63), completed with 47 local objects.
remote: error: Trace: 1e2d1dd7815caa92be761a87d6f90afaca999e05b2f21e34d68c3965ed04618f
remote: error: See https://gh.io/lfs for more information.
remote: error: File Assets/Scenes/Main.unity is 102.54 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:arcadeperfect/Phys-Clock-Unity.git
 ! [remote rejected] mac -> mac (pre-receive hook declined)
git github git-lfs
1个回答
0
投票
  1. 如错误日志:需要在Github仓库中启用git LFS支持
  2. 之后尝试使用 git push originbranch-namegit lfs push --all
  3. 再次推送
© www.soinside.com 2019 - 2024. All rights reserved.