博客
关于我
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索引(4):索引语法
    查看>>
    mysql级联删除_Mysql笔记系列,DQL基础复习,Mysql的约束与范式
    查看>>
    mysql经常使用命令
    查看>>
    MySQL经常使用技巧
    查看>>
    mysql给账号授权相关功能 | 表、视图等
    查看>>
    MySQL缓存使用率超过80%的解决方法
    查看>>
    Mysql缓存调优的基本知识(附Demo)
    查看>>
    mysql编写存储过程
    查看>>
    mysql网站打开慢问题排查&数据库优化
    查看>>
    mysql网络部分代码
    查看>>
    mysql联合索引 where_mysql联合索引与Where子句优化浅析
    查看>>
    mysql联合索引的最左前缀匹配原则
    查看>>
    mysql自动化同步校验_Shell: 分享MySQL数据同步+主从复制自动化脚本_20190313_七侠镇莫尛貝...
    查看>>
    Mysql自增id理解
    查看>>
    mysql自增id超大问题查询
    查看>>
    MySQL自定义变量?学不废不收费
    查看>>
    MySQL自带information_schema数据库使用
    查看>>
    MySQL获取分组后的TOP 1和TOP N记录
    查看>>
    mysql虚拟列表_动态网页制作-官方版合集下载-多特
    查看>>
    MySQL蜜罐反制获取攻击者信息
    查看>>