how to use the git clone command through a http proxy.

Posted: October 23, 2013. At: 10:16 AM. This was 4 years ago. Post ID: 6477

The git clone command is used to pull the latest code from a GIT repository. But using it through a proxy can be annoying. Here is how to do this.

Firstly; define your HTTP proxy information.

export HTTP_PROXY="http://Monty.Burns:[email protected]:80"

Then you need to tell GIT about the proxy.

git config --global http.proxy $HTTP_PROXY

Then you may use the GIT command and this will complete successfully.

git clone

No comments have been made. Use this form to start the conversation :)

Leave a Reply