Showing posts with label git fatal unable to access. Show all posts
Showing posts with label git fatal unable to access. Show all posts

Tuesday, April 23, 2019

GIT Command fails in VPN - fatal: unable to access

Git users may face the below issue while connecting to git while they are in VPN


fatal: unable to access 'https://github.com/user/MyProject.git/'


In order to over come this issue, the git config must be updated with proxy which is used in your VPN.

Open command prompt and enter the following command

git config --global http.proxy #ProxyServer:8080

#ProxyServer must be replaced with the IP or the full name of the proxy server.

Do not enter proxy server with https:\\ or http:\\

To ensure that you have configured correctly.

git config -l

This would list down all your configuration. In that list, you would find the value for http.proxy

http.proxy=#ProxyServer:8080


Try using the git command after configuring the proxy settings. This time, it must work.

To unset the proxy setting, use the following command

git config --global --unset http.proxy

Happy Learning!

Featured Post

REXX Skeleton: Submitting jobs through Rexx

Submitting jobs through REXX and reading the spool through REXX gives us immense potential to automate many manual activities in mainframes....