处理无法拉取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

完成。就可以拉取了。

相关推荐
fitpolo16 分钟前
Sourcetree图文使用教程(保姆级)
github
算法小菜鸟成长心得1 小时前
如何将本地项目上传至github
github
初学者_xuan1 小时前
零基础新手小白快速了解掌握服务集群与自动化运维(十六)集群部署模块——Keepalived双机热备
运维·自动化·github
逛逛GitHub4 小时前
推荐 11 个本周 yyds 的 GitHub 开源项目。
github
摸鱼仙人~6 小时前
GitHub高质量的开源博客项目推荐
开源·github
敲敲了个代码6 小时前
为什么 Electron 项目推荐使用 Monorepo 架构 [特殊字符][特殊字符][特殊字符]
前端·javascript·学习·架构·electron·github
CoderJia程序员甲8 小时前
GitHub 热榜项目 - 日榜(2025-10-29)
ai·开源·github·1024程序员节·ai教程
顾安r8 小时前
10.25 脚本 整理2024全年 GITHUB每周热门项目
linux·c语言·python·github·bash
油泼辣子多加9 小时前
2025年10月28日Github流行趋势
github
ab15969441979 小时前
白嫖 GitHub 当流水线
github