简体   繁体   English

远程“原点”不支持 LFS 锁定 API //尝试使用 lf 上传 github 中大于 100mb 的 model.h5 文件

[英]Remote "origin" does not support the LFS locking API //trying to upload model.h5 file in github which is more than 100mb using lfs

Remote "origin" does not support the LFS locking API.远程“原点”不支持 LFS 锁定 API。 Consider disabling it with: $ git config lfs.https://github.com/rajghadi1/trial.git/info/lfs.locksverify false Post "https://github.com/rajghadi1/trial.git/info/lfs/locks/verify": dial tcp 13.234.176.102:443: i/o timeout error: failed to push some refs to 'https://github.com/rajghadi1/trial.git' enter image description here考虑禁用它: $ git config lfs.https://github.com/rajghadi1/trial.git/info/lfs.locksverify false Post "https://github.com/rajghadi1/trial.git/info/lfs/锁定/验证”:拨打 tcp 13.234.176.102:443:i/o 超时错误:未能将一些参考推送到“https://github.com/rajghadi1/trial.git”在此处输入图像描述

The problem you're seeing here is this one:您在这里看到的问题是:

Post "https://github.com/rajghadi1/trial.git/info/lfs/locks/verify": dial tcp 13.234.176.102:443: i/o timeout

That means that the operation timed out.这意味着操作超时。 It's likely that you have some sort of network problem which is preventing you from connecting to GitHub.您可能遇到某种网络问题,导致您无法连接到 GitHub。 The request in this case is relatively small, and therefore it should not be the cause of timeouts itself.这种情况下的请求相对较小,因此它本身不应该是超时的原因。

If you have a proxy or TLS MITM device, or an antivirus or firewall other than Windows Defender or Windows Firewall, try switching to a different network or completely removing the software and rebooting.如果您有代理或 TLS MITM 设备,或者除 Windows Defender 或 Windows 防火墙之外的防病毒或防火墙,请尝试切换到其他网络或完全删除软件并重新启动。 Usually these things are the cause of network problems, but it may also be a problem with your ISP.通常这些事情是网络问题的原因,但也可能是您的 ISP 的问题。

Can you check if you are using an older version of git?你能检查一下你是否使用的是旧版本的 git 吗? This might happen if you are not using latest version of TLS library.如果您没有使用最新版本的 TLS 库,则可能会发生这种情况。

alternatively, though not recommended, you can disable it by running the command as suggested in the error message itself,或者,虽然不推荐,但您可以通过运行错误消息本身中建议的命令来禁用它,

git config lfs.https://github.com/rajghadi1/trial.git/info/lfs.locksverify false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM