git - 推送到 Git 存储库时的 i/o 超时

标签 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.

最佳答案

解决方案是更改 dialtimeout 和 activitytimeout lfs 值,我将它们更改为非常高的值 (3600)。
编辑:
我用来更改值的命令是:

git config lfs.dialtimeout 3600
git config lfs.activitytimeout 3600
3600 是我使用的值,您显然应该使用适合您需求的值。

关于git - 推送到 Git 存储库时的 i/o 超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58961697/

相关文章:

javascript - Heroku Node 应用推送失败

git svn 克隆 : <file> was not found in commit <sha>

Git 克隆在 AWS CodeCommit 中工作,但推送失败并显示 403

git - 如何禁用 git merge 提示消息

r - 从 Github 安装的软件包是否需要 Rtools?

git - 推送到 github 时出错 - 更新被拒绝,因为推送的分支提示在其远程后面

github - 访问虚幻引擎 github 存储库时出现问题

git - 安装后源树崩溃

git - 如何在 SourceTree.app 中设置头像?

git - Git 软件(例如 Gitbox、Github、SourceTree)可以使用远程仓库而不是本地仓库吗?