git - 大量提交的 Git 推送失败
问题描述
如同:
失败信息:
Pushing efb55fab0352e4fff42129d00b642e908e9d09c1...
Counting objects: 617706, done.
Delta compression using up to 6 threads.
Compressing objects: 100% (368204/368204), done.
Writing objects: 36% (222375/617706), 1.79 GiB | 278.60 MiB/s
remote: fatal: pack exceeds maximum allowed size
error: RPC failed; curl 55 Failed sending data to the peer
fatal: The remote end hung up unexpectedly
Writing objects: 100% (617706/617706), 4.37 GiB | 185.36 MiB/s, done.
Total 617706 (delta 218614), reused 617467 (delta 218375)
fatal: The remote end hung up unexpectedly
Everything up-to-date
Counting objects: 617709, done.
Delta compression using up to 6 threads.
Compressing objects: 100% (368206/368206), done.
Writing objects: 36% (222376/617709), 1.83 GiB | 392.11 MiB/s
语境:
处理猕猴桃的一个分支(https://github.com/kiwibrowser/src)
为方便起见,向 url 添加了令牌:
$ git remote set-url origin https://:@github.com/path/to/repo.git
冉推;几个小时后抛出上述错误?
解决方案
在 GitHub.com 上,大小限制为 100MB https://docs.github.com/en/github/managing-large-files/working-with-large-files/conditions-for-large-files
如果你有 Github Enterprise Server,如果你有权限,你可以更改大小限制。 https://docs.github.com/en/enterprise-server@3.1/github/managing-large-files/working-with-large-files/conditions-for-large-files
如果其中一些文件是二进制文件,您可以使用 Git LFS 吗?
推荐阅读
- python - AttributeError: 'English' 对象没有属性 'vocal'
- sql - 连接一个表包含整理列的表
- python - 在 Python 中解析 .pdb 文件并为特定记录类型创建字典
- pandas - 将 Str 转换为从 Beautifulsoup 中提取的日期时间
- android - 如何仅为一个回收器视图适配器设置不同的 OnClickListener
- javascript - 如何在Javascript中使用子菜单防止响应式下拉子菜单li中的默认行为
- java - 在远程机器上启动 ActiveMQ BrokerService
- dataset - 即使输入正确,估计器也不起作用
- sas - 在 SAS 中使用 PROC SQL 进行日期比较
- excel - 迭代命名范围以与 LINEST 一起使用