You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code GitLens出现"GitHub request timed out"错误求解决方案

解决GitLens "GitHub request timed out."错误的办法
  • 检查网络与代理

    • 先确认网络能正常访问GitHub,用浏览器打开github.com测试连通性
    • 打开VS Code设置(快捷键Ctrl+,/Cmd+,),搜索http.proxy,确认代理配置正确,或暂时关闭代理重试
    • 搜索gitlens.proxy,若配置了不合适的代理,可设为"off"禁用专属代理
  • 重置GitLens的GitHub授权

    • 打开命令面板(Ctrl+Shift+P/Cmd+Shift+P),执行GitLens: Sign Out of GitHub登出账号
    • 再执行GitLens: Sign In to GitHub重新完成授权流程
  • 延长GitLens请求超时时间

    • 在VS Code设置中搜索gitlens.github.timeout,默认5000毫秒,可调整为10000(10秒)或更高数值
  • 更新插件与编辑器

    • 在扩展面板找到GitLens,检查并安装最新版本
    • 升级VS Code到最新稳定版,修复可能存在的兼容性问题
  • 重置GitLens插件状态

    • 在扩展面板禁用GitLens,重启VS Code后再重新启用插件
  • 清理本地Git代理配置

    • 打开终端,执行git config --global --list查看全局Git配置
    • 若存在异常的http.proxy或https.proxy,执行git config --global --unset http.proxy和git config --global --unset https.proxy清除

内容的提问来源于stack exchange,提问作者Or Assayag

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 03:22:39