推送到 Git 存储库时的 I/O 超时



我正在使用 Git 的源代码树客户端。

当我尝试推送我的最新提交时,出现此错误:

Pushing to https://github.com/<my project>.git
Uploading LFS objects:   0% (0/2), 1.0 GB | 23 MB/s, done
LFS: Put https://github-cloud.s3.amazonaws.com/alambic/media/236885180/82/06/8206f95c5f11de61a3cb31e8a9047de62a43c832ad3aa569ee16386b01ed53d6?actor_id=37049664: read tcp <ip>->52.216.25.116:443: i/o timeout
LFS: Put https://github-cloud.s3.amazonaws.com/alambic/media/236885180/00/99/0099579d1f280c937c1aa2a5b63d41b35df2f149d5c652f2619dadc60cbb9553?actor_id=37049664: read tcp <ip>->52.216.25.116:443: i/o timeout
error: failed to push some refs to 'https://github.com/<my project>.git'
Completed with errors, see above.

解决方案是更改拨号超时和活动超时 lfs 值,我将它们更改为非常高的值 (3600(。

编辑:

我用来更改值的命令是:

git config lfs.dialtimeout 3600
git config lfs.activitytimeout 3600

3600是我使用的值,您显然应该使用适合需求的值。

最新更新