博客
关于我
git clone 错误
阅读量:653 次
发布时间:2019-03-15

本文共 2107 字,大约阅读时间需要 7 分钟。

�often encounter git clone issues when the proxy settings are incorrectly configured. This problem often occurs when git is set to use a proxy server, but the proxy server isn't accessible or isn't functioning properly. In this case, let's guide you through troubleshooting and resolution.

common git connection refused error:

fatal: unable to access 'https://github.com/frida/frida.git/': Failed to connect to 127.0.0.1 port 1087: Connection refused

or

fatal: unable to access 'https://github.com/frida/frida.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

checking git configuration:

open ~/.gitconfig and remove the proxy settings if they exist:

[user]    name = qwer    email = alikai812@qq.com[http]    # proxy = http://127.0.0.1:1087[https]    # proxy = http://127.0.0.1:1087

steps to fix:

  • Remove incorrect proxy settings:

    • Open your ~/.gitconfig file.
    • Comment out or remove any lines that specify proxy settings under [http] and [https].
  • Check network connectivity:

    • Ensure you can access the internet.
    • Try cloning the repository again after making changes to git config.
  • Verify git config has been updated:

    • Open a new terminal or command prompt.
    • Run git config --system list --global to confirm that proxy settings have been reset.
  • **Consider using https instead of https://]:If the issue persists, try using git clone https://github.com/frida/frida.git instead of git clone git://github.com/frida/frida.git.

  • Check environmental variables:

    • Ensure that __Proxy or http_proxy variables are not set in your shell configuration files.
  • Additional Tips:

    • Bright Liu: It's normal to encounter such issues, especially when transitioning between different environments or network configurations.
    • Wang Li: Always verify that your proxy settings are correctly configured and that they align with your current network setup.
    • Common Mistakes: forgetting to comment out proxy lines rather than deleting them, or not running the commands as a superuser (sudo).

    By following these steps, you should be able to resolve the "connection refused" error and successfully clone the repository.

    转载地址:http://dskmz.baihongyu.com/

    你可能感兴趣的文章
    Nacos2.X 配置中心源码分析:客户端如何拉取配置、服务端配置发布客户端监听机制
    查看>>
    Nacos2.X源码分析:服务注册、服务发现流程
    查看>>
    NacosClient客户端搭建,微服务注册进nacos
    查看>>
    Nacos中使用ribbon
    查看>>
    Nacos使用OpenFeign
    查看>>
    Nacos使用Ribbon
    查看>>
    Nacos做注册中心使用
    查看>>
    Nacos做配置中心使用
    查看>>
    Nacos入门过程的坑--获取不到配置的值
    查看>>
    Nacos原理
    查看>>
    Nacos发布0.5.0版本,轻松玩转动态 DNS 服务
    查看>>
    Nacos启动异常
    查看>>
    Nacos命名空间配置_每个人用各自自己的命名空间---SpringCloud Alibaba_若依微服务框架改造---工作笔记001
    查看>>
    Nacos和Zookeeper对比
    查看>>
    Nacos在双击startup.cmd启动时提示:Unable to start embedded Tomcat
    查看>>
    Nacos基础版 从入门到精通
    查看>>
    Nacos如何实现Raft算法与Raft协议原理详解
    查看>>
    Nacos安装教程(非常详细)从零基础入门到精通,看完这一篇就够了
    查看>>
    Nacos实战攻略:从入门到精通,全面掌握服务治理与配置管理!(上)
    查看>>
    Nacos实战攻略:从入门到精通,全面掌握服务治理与配置管理!(下)
    查看>>