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

Don*_*dre 6 git github atlassian-sourcetree git-lfs

我正在使用 Git 的 Sourcetree 客户端。

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

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.
Run Code Online (Sandbox Code Playgroud)

Don*_*dre 5

解决方案是更改 dialtimeout 和 Activitytimeout lfs 值,我将它们更改为非常高的值(3600)。

编辑:

我用来更改值的命令是:

git config lfs.dialtimeout 3600
git config lfs.activitytimeout 3600
Run Code Online (Sandbox Code Playgroud)

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

  • 你是如何改变它们的?LFS 只是报告“警告:这些不安全的 lfsconfig 密钥被忽略” (2认同)