猫咪与Git 解决git clone 443问题

这篇具有很好参考价值的文章主要介绍了猫咪与Git 解决git clone 443问题。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

系统配置

  1. Ubuntu 20.04
  2. 代理为经典的猫咪logo软件

参考链接

问题描述

打算通过Git Clone一个第三方程序库时出现了下面的错误:

git clone https://github.com/borglab/gtsam.git
Cloning into 'gtsam'...
fatal: unable to access 'https://github.com/borglab/gtsam.git/': Failed to connect to github.com port 443: Connection timed out

解决方法

首先需要知道代理给我们分配的IP与端口号, 小猫咪分配的是: 127.0.0.1:7890
所以此时需要启动git配置端口号

git config --global http.proxy http://127.0.0.1:7890 
git config --global https.proxy http://127.0.0.1:7890

取消相关设置的命令是:

git config --global --unset http.proxy
git config --global --unset https.proxy

查看相关的配置是:文章来源地址https://www.toymoban.com/news/detail-824792.html

git config --global --get http.proxy
git config --global --get https.proxy

到了这里,关于猫咪与Git 解决git clone 443问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • git无法使用git协议clone github仓库问题解决

    提示错误: 首先登录github账号,检查本机的 ~/.ssh/id_rsa.pub 是否添加到github账号 https://github.com/settings/keys 如果没有添加,需要先添加本机的ssh公钥到github 然后再重试 git clone  如果依然报错,需要检查 ~/.ssh/known_hosts  ,找到github.com开头的行,然后删除 再次重试 git clone 此时提示需要

    2024年02月12日
    浏览(37)
  • 解决 git clone 时遇到的一些问题

    在使用 git clone 时,出现了以下报错: GnuTLS recv error (-110): The TLS connection was non-properly terminated. 依次输入以下代码: 然后再次使用 git clone 发现可以正常下载了。 输入以下两行代码解决:

    2024年02月16日
    浏览(43)
  • git clone 拉取Git仓库时出现Failed to connect to github.com port 443: 拒绝连接

    当你挂着代理 或者取消代理都尝试过 并且均失败。 1.为 Git 单独配置代理-失败 2.取消代理-失败 解决: 可能是network-manager和NetworkManager发生了冲突,禁用NetworkManager并且重启network-manager后发现可以成功git clone

    2024年01月22日
    浏览(51)
  • 在GitHub上 git clone代码失败,显示:“ithub.com port 443: 连接超时“

    有时候,使用git clone 指令下载代码时显示显示:“ithub.com port 443: 连接超时”。 可以使用gitclone加速,官网URL:https://gitclone.com/ 官方描述,有下面三种方式可以使用: 本人亲测第一种方法,下载Yolov5,速度飞起!!!!! 打个比方,原始方法: 替换URL后: 没一会就下好了

    2024年02月11日
    浏览(45)
  • git clone 出现fatal:无法访问问题解决

    例如 git clone https://github.com/aboul3la/Sublist3r.git 直接进行clone 出现fatal:无法访问的问题 直接在 中间加上 gitclone.com/ 例如 git clone https:// gitclone.com/ github.com/aboul3la/Sublist3r.git 问题得到解决

    2024年02月11日
    浏览(31)
  • 解决Linux系统git clone失败或超时问题

    使用git clone常常不成功,以下是解决办法,亲测有效 1. 修改hosts 首先使用 sudo vim /etc/hosts 进入hosts,此时是查看模式 按下 i 进入编辑模式,此时需要插入两个IP地址 使用 https://www.ipaddress.com/ 查找两个地址: 然后将地址和名字粘贴进hosts文件中:  2. 重启网络和服务器 完成

    2024年02月05日
    浏览(49)
  • git clone 时Failed to connect to github.com port 443:connection timed out 怎么办

    设置全局代理: 再次尝试,一般情况下可以正常clone。 如果遇到以下报错: 请采取第二种方法。 1.打开https://github.com.ipaddress.com/ 如下图:  记录IP地址(可能与上图有差异)! 2.打开https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo 如下图:   记录4个IPV4地址! 3.修改h

    2024年02月16日
    浏览(45)
  • 解决ubuntu新虚拟机下apt update报错和git clone失败的问题

    新的虚拟机,安装git发现apt不能正常使用,报错如下 第一反应是考虑到apt源配置可能有问题,用vi /etc/apt/source.list打开源发现没有问题,用ping测试网络,ping百度报错unkown host,ping 8.8.8.8可以通,应该是域名解析错误,vi /etc/resolv.conf更改nameserver,输入两个8.8.8.8和8.8.4.4,然后

    2024年02月03日
    浏览(37)
  • 解决git clone或者pip install git+https://github.com/ruotianluo/meshed-memory-transformer.git出现的一系列问题

    出现的错误: 问题1. fatal: unable to access \\\'https://github.com/ruotianluo/meshed-memory-transformer.git/\\\': Failed to connect to github.com port 443 after 21020 ms: Timed out   error: unable to read sha1 file of m2transformer/data/example.py (d46c07fc2bb636146922425a46fbcbb2443407cf) 问题2. Collecting git+https://github.com/ruotianluo/meshed-memor

    2024年02月05日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包