Search code examples
gitclonerepo

Unable to Clone Repo


I am attempting to set up my environment but I keep running into this issue when I am using the git clone command.

I am using a Mac with MacOS Monterey 12.4

Below is the error that I am running into

fatal: unable to access 'https://github.com/Sheshanator/coursera-test.git/': Unsupported proxy syntax in 'proxy.server.com:port'


Solution

  • If you are already working behind a proxy, chances are your environment variables HTTP_PROXY/HTTPS_PROXY are already correctly set.

    If you see a value returned in git config --global http.proxy, I would rather unset it, and leave Git use its environment instead of an improperly defined Git configuration.

    git config --global --unset http.proxy