Malintha
Malintha

Reputation: 4776

Git tries resolve a proxy which hasn't been set

I set http_proxy in my /etc/environment file but I removed it recently. I am trying to checkout a project from git but I am always getting following error.

fatal: unable to access 'https://github.com/yyy.git/': Could not resolve proxy: xxx.xxx.xxx.xxx

I double checked my system proxy and git proxy setting using following commands but they do not show me any applied proxy setting. How can I solve this issue?

env | grep proxy
git config -l | grep proxy

Upvotes: 0

Views: 71

Answers (1)

Malintha
Malintha

Reputation: 4776

git config --global --unset http.proxy resolved the issue

Upvotes: 1

Related Questions