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

    你可能感兴趣的文章
    Navicat可视化界面导入SQL文件生成数据库表
    查看>>
    Navicat向sqlserver中插入数据时提示:当 IDENTITY_INSERT 设置为 OFF 时,不能向表中的标识列插入显式值
    查看>>
    Navicat因导入的sql文件中时间数据类型有参数而报错的原因(例:datetime(3))
    查看>>
    Navicat如何连接MySQL
    查看>>
    navicat导入.sql文件出错2006- MySQLserver has gone away
    查看>>
    Navicat导入海量Excel数据到数据库(简易介绍)
    查看>>
    Navicat工具Oracle数据库复制 or 备用、恢复功能(评论都在谈论需要教)
    查看>>
    Navicat工具中建立数据库索引
    查看>>
    navicat工具查看MySQL数据库_表占用容量_占用空间是多少MB---Linux工作笔记048
    查看>>
    navicat怎么导出和导入数据表
    查看>>
    Navicat怎样同步两个数据库中的表
    查看>>
    Navicat怎样筛选数据
    查看>>
    Navicat报错connection is being used
    查看>>
    Navicat报错:1045-Access denied for user root@localhost(using passwordYES)
    查看>>
    Navicat控制mysql用户权限
    查看>>
    navicat操作mysql中某一张表后, 读表时一直显示正在载入,卡死不动,无法操作
    查看>>
    Navicat连接mysql 2003 - Can't connect to MySQL server on ' '(10038)
    查看>>
    Navicat连接mysql数据库中出现的所有问题解决方案(全)
    查看>>
    Navicat连接Oracle出现Oracle library is not loaded的解决方法
    查看>>
    Navicat连接Oracle数据库以及Oracle library is not loaded的解决方法
    查看>>