I\'m trying to do a simple git clone https://github.com/org/project.git on a CentOS box but get:
git clone https://github.com/org/project.git
error: The requested URL returned error:
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.