Can't clone a github repo on Linux via HTTPS

前端 未结 9 1430
别跟我提以往
别跟我提以往 2020-12-02 06:47

I\'m trying to do a simple git clone https://github.com/org/project.git on a CentOS box but get:

error: The requested URL returned error:

9条回答
  •  旧时难觅i
    2020-12-02 07:32

    I had the same problem and error. In my case it was the https_proxy not set. Setting the https_proxy environment variable fixed the issue.

    $ export https_proxy=https://:
    

    Example:

    $ export https_proxy=https://my.proxy.company.com:8000
    

    Hope this help somebody.

提交回复
热议问题