SourceTree Github 推送大文件时(MapBox Framework)Return 错误

SourceTree Github When Pushing Large Files (MapBox Framework) Return Error

版本:-1

我无法将提交推送到存储库。以下是我从 Sourcetree 获得的消息和屏幕截图。我正在使用 Mac.

错误:-

POST git-receive-pack (chunked)
error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 32
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date.

截图

问题:谁能告诉我怎么推送。

如有任何帮助,我们将不胜感激。

提前致谢。


版本:-2

当我在 SourceTree 中使用 LFS 时。

1.取消提交大文件:-

2。已经初始化:-

3。在 GLS 中添加跟踪框架:-

我已经在源代码树中使用 LFS。但我对如何使用和添加框架扩展有点困惑。

GH001: Large file detected(如屏幕截图所示)似乎表明连接失败,因为您推送的提交太大。

如前所述,使用 LFS 或从历史记录中过滤大型对象 (using git filter-repo as in here) 是两种选择。

根据 Github documentation for large files size:

GitHub limits the size of files allowed in repositories. If you attempt to add or update a file that is larger than 50 MB, you will receive a warning from Git. The changes will still successfully push to your repository, but you can consider removing the commit to minimize performance impact.

此处,您的文件超过 100MB(根据屏幕截图)。在那种情况下:

GitHub blocks pushes that exceed 100 MB.

To track files beyond this limit, you must use Git Large File Storage (Git LFS). For more information, see "About Git Large File Storage."

If you need to distribute large files within your repository, you can create releases on GitHub.com instead of tracking the files. For more information, see "Distributing large binaries."

@GuiFalourd,@VonC。谢谢你的帮助。在 Github LFS 中没有跟踪我的 Repo 中一些大小超过 2MB 的文件。这就是我遇到这个问题的原因。

这是最新的也是最终的 Github LFS 文件跟踪列表。