How to solve Git “could not resolve proxy” error

Some times When we try to clone from git url , for example I want to clone this url https://github.com/smlcodes/JSPMaven.git

 

It shows below error

 

To solve this type of issue

  1. Open GIT Bash & Run below command

git config --global --unset http.proxy

 

  1. Check the environment variables with :

$echo $http_proxy

$echo $https_proxy

$echo $HTTPS_PROXY

$echo $HTTP_PROXY

If any of these environment variables are set then unset them by just using http_proxy= then enter will unset those using below command

git config --global --unset http.proxy

git config --global --unset https.proxy