4

I am working on a TensorFlow tutorial at the moment and need to download the source code. When I run git clone ..., however, I get the following error:

C:\Git\cmd>git clone https://github.com/tensorflow/nmt/
Cloning into 'nmt'...
fatal: unable to access 'https://github.com/tensorflow/nmt/': Could not resolve proxy: aproxy

I am working from my home network and have the latest version of Git.
I tried the following command, without success:

git config --global --unset https.proxy

Any ideas?

10
  • What is the proxy settings of your system? Commented Jun 23, 2018 at 0:29
  • If you are using windows, check here please: helpdeskgeek.com/networking/… Commented Jun 23, 2018 at 0:50
  • As the website points out, everything is set to Off. Commented Jun 23, 2018 at 0:55
  • Have you tried both (not only one): git config --global --unset http.proxy and git config --global --unset https.proxy Commented Jun 23, 2018 at 0:58
  • Yes, but I still get the same error. Commented Jun 23, 2018 at 0:59

2 Answers 2

12

Git has its own proxy.

To reset git proxy:

git config --global https.proxy ""
git config --global http.proxy ""

To reset system proxy:

On Ubuntu, you can set proxy by using

export http_proxy=""
export https_proxy=""

export all_proxy=""

Then run

git clone
Sign up to request clarification or add additional context in comments.

Comments

2

Go to your cloned repository, and type:

git config -l --show-origin

Check if you see any http(s).proxy setting anywhere (since git config --global --unset only takes care of one of the config files)

Check also your environment variable in the CMD session/bash you are in (set or env) and make sure no HTTP(S)_PROXY variable was defined.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.