git behind corporate proxy

If you have trouble cloning github repository from your company’s PC. Then you need to set-up Git for additional configuration to go through corporate proxy.

For windows:

You need to download and install git client in windows PC. (GitBash)

For Mac

You can use Terminal. Git is pre-installed.

open Gitbash or Terminal and enter the following command

git config –global http.proxy ‘http://<domain name>\<user id>:<password>@<proxy server>:proxy port’

git config –global https.proxy ‘http://<domain name>\<user id>:<password>@<proxy server>:proxy port’

If your password contains special characters, the you need to use escape characters.

E.g if your password contains ‘@’ symbol then ‘@’ needs to be replaced with ‘%40’