(转)git clone出现 fatal: unable to access 'https://github.com/...'的解决办法
2023-09-11 14:15:23 时间
如下图所示,当我Git克隆别人的repo时,会发生这样的错误.发现它尝试用http和https代理,后来仔细回想了下,原来是自己用了代理,忘记取消
# 查看当前git 的设置
git config --global -l
# 设置代理
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
http://也可以改成sockets5://,但是区别在于:socks5不支持通过pubkey免密登录github,每次提交代码只能输入用户名和密码。http可以支持免密登录。
# 取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
参考文献:
https://blog.csdn.net/dashi_lu/article/details/89641778
相关文章
- Git 操作远程仓库(Github)
- Android基础新手教程——1.5.2 Git之使用GitHub搭建远程仓库
- Github——常用命令介绍
- Github 如何获取 GitHub Client ID and Client Secret
- go github.com/imroc/req轻量级http请求处理详解
- 如何用git将项目代码上传到github
- GitHub
- 千寻简Git连接GitHub
- Github入门详情教程
- Git 安装 fatal: unrecognized command “/home/git/bin/gitolite-shell id_rsa“
- 学会Git玩转Github
- github上传项目(使用git)、删除项目、添加协作者
- 首次使用git上传本地项目到github上
- 怎样在Github参与一个开源项目
- 一台电脑支持2个git账号:gitlab+github
- github与git之间怎么建立连接
- 你没看错:中国GitHub新用户增长世界最快
- 使用git将项目上传到github(最简单方法)
- [转]git clone出现 fatal: unable to access 'https://github.com/...'的解决办法(亲测有效)
- Github注册教程