Git connection time out trying to clone via proxy
14,915
you do not need corkscrew for accessing a http repo behind a proxy server.
set the environment variable http_proxy
export http_proxy=http://<proxy>:<port>/
and then git will use the http proxy
see also http://roshansingh.wordpress.com/2008/08/29/using-git-behind-proxy/
Author by
user900785
Updated on August 02, 2022Comments
-
user900785 almost 2 years
I am getting a connection timeout error when I try to clone a Git repo via a proxy server.
git clone
http://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git
Cloning into linux-2.6-imx...
error: Failed connect to opensource.freescale.com:8080; Connection timed out while accessinghttp://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git/info/refs
fatal: HTTP request failed
I used corkscrew and set my git proxy to the server address and port. How else can I download or clone a Git repo over proxy?