处理无法拉取GitHub库的解决方案

提交和拉取github上的库总是失败,这里记录一下如何使用代理解决。

首先找到端口,记住它的端口

然后使用git命令

cpp 复制代码
# HTTP/HTTPS 协议
git config ----global http.url.proxy http://127.0.0.1:port
# 以 Github 为例
git config ----global http.https://github.com.proxy http://127.0.0.1:port

# SOCKS5 协议
git config ----global http.url.proxy socks5://127.0.0.1:port
# 以 Github 为例
git config ----global http.https://github.com.proxy socks5://127.0.0.1:port

完成。就可以拉取了。

相关推荐
散峰而望5 分钟前
【算法练习】算法练习精选:陶陶摘苹果(基础+升级)、Music Notes、字串变换,你能AC几道?
数据结构·c++·算法·leetcode·贪心算法·github·动态规划
Smilezyl2 小时前
为了搞懂 AI Agent,我用 6000 行 JS 代码手搓了一个零依赖的 Coding Agent
前端·javascript·github
InsightCore3 小时前
这个12MB的小东西,竟然说要取代所有AI框架?
github
MageGojo3 小时前
Whois 域名查询 API 接入实战:用一个 GET 请求获取域名注册信息
java·git·github
darkb1rd3 小时前
Odysseus:私有化 AI 工作流部署实战指南
开源·github·好物分享
本地化文档4 小时前
sphinxcontrib-rust-docs-l10n
python·rust·github·gitcode·sphinx
创实信息5 小时前
从安装到首次运行:GitHub Copilot CLI 新手完整上手指南
github·copilot·ai编程·ai助手
洛宇17 小时前
一个口语 skill,灵感居然来自2021年的那个夏天
人工智能·程序员·github
LienJack19 小时前
我做了一个 AI Agent 学习站
github·agent
一点一木20 小时前
🚀 2026 年 5 月 GitHub 十大热门项目排行榜 🔥
人工智能·github·ai编程