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

    你可能感兴趣的文章
    mysql - 视图
    查看>>
    MySQL - 解读MySQL事务与锁机制
    查看>>
    MTTR、MTBF、MTTF的大白话理解
    查看>>
    mt_rand
    查看>>
    mysql /*! 50100 ... */ 条件编译
    查看>>
    mudbox卸载/完美解决安装失败/如何彻底卸载清除干净mudbox各种残留注册表和文件的方法...
    查看>>
    mysql 1264_关于mysql 出现 1264 Out of range value for column 错误的解决办法
    查看>>
    mysql 1593_Linux高可用(HA)之MySQL主从复制中出现1593错误码的低级错误
    查看>>
    mysql 5.6 修改端口_mysql5.6.24怎么修改端口号
    查看>>
    MySQL 8.0 恢复孤立文件每表ibd文件
    查看>>
    MySQL 8.0开始Group by不再排序
    查看>>
    mysql ansi nulls_SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON 什么意思
    查看>>
    multi swiper bug solution
    查看>>
    MySQL Binlog 日志监听与 Spring 集成实战
    查看>>
    MySQL binlog三种模式
    查看>>
    multi-angle cosine and sines
    查看>>
    Mysql Can't connect to MySQL server
    查看>>
    mysql case when 乱码_Mysql CASE WHEN 用法
    查看>>
    Multicast1
    查看>>
    MySQL Cluster 7.0.36 发布
    查看>>