博客
关于我
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/

    你可能感兴趣的文章
    Ncast盈可视 高清智能录播系统 IPSetup.php信息泄露+RCE漏洞复现(CVE-2024-0305)
    查看>>
    NCNN中的模型量化解决方案:源码阅读和原理解析
    查看>>
    NCNN源码学习(1):Mat详解
    查看>>
    nc命令详解
    查看>>
    NC综合漏洞利用工具
    查看>>
    ndarray 比 recarray 访问快吗?
    查看>>
    ndk-cmake
    查看>>
    NdkBootPicker 使用与安装指南
    查看>>
    ndk特定版本下载
    查看>>
    NDK编译错误expected specifier-qualifier-list before...
    查看>>
    Neat Stuff to Do in List Controls Using Custom Draw
    查看>>
    Necurs僵尸网络攻击美国金融机构 利用Trickbot银行木马窃取账户信息和欺诈
    查看>>
    Needle in a haystack: efficient storage of billions of photos 【转】
    查看>>
    NeHe OpenGL教程 07 纹理过滤、应用光照
    查看>>
    NeHe OpenGL教程 第四十四课:3D光晕
    查看>>
    Neighbor2Neighbor 开源项目教程
    查看>>
    neo4j图形数据库Java应用
    查看>>
    Neo4j图数据库_web页面关闭登录实现免登陆访问_常用的cypher语句_删除_查询_创建关系图谱---Neo4j图数据库工作笔记0013
    查看>>
    Neo4j图数据库的介绍_图数据库结构_节点_关系_属性_数据---Neo4j图数据库工作笔记0001
    查看>>
    Neo4j图数据库的数据模型_包括节点_属性_数据_关系---Neo4j图数据库工作笔记0002
    查看>>