git lfs error:batch response: HTTP/2 cannot be used except with TLS
自己在腾讯云通过gitea架设的git服务器,使用了lfs。
commit和push都很正常,不过换了台机器clone时遇到问题:
git lfs pull batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS batch response: HTTP/2 cannot be used except with TLS Failed to fetch some objects from 'htpp://....'
报错的意思是HTTP/2不能与TLS一起工作。在百度和google都找了一圈,看起来都没人遇到过。所以只好自己解决。既然TLS不能跟HTTP/2一起工作,那么其它版本的HTTP行不行呢?所以我搜了一下设置http版本的方法,找到一个命令,试了一下,还真能解决这个问题,留个脚印免得忘了:
git config http.version HTTP/1.1
git lfs pull
Downloading LFS objects: 11% (198/1789), 534 MB | 2.4 MB/s
分类:
工具教程
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)