Git proxy configuration 设置代理服务器

平日学习点滴

I found the way in StackOverflow

This worked for me, in windows XP behind a corporate firewall.

  
  
  
  
  1. $ git config --global http.proxy http://proxyuser:[email protected]:8080  
  2. $ git config --system http.sslcainfo /bin/curl-ca-bundle.crt  
  3. $ git remote add origin https://mygithubuser:[email protected]/repoUser/repoName.git
  4. $ git push origin master 

 

proxyuser= the proxy user I was assigned by our IT dept, in my case it is the same windows user I use to log in to my PC, the Active Directory user

proxypwd= the password of my proxy user proxy.server.com:8080 = the proxy name and port, I got it from Control Panel, Internet Options, Connections, Lan Settings button, Advanced button inside the Proxy Server section, use the servername and port on the first (http) row.

mygithubuser = the user I use to log in to github.com

mygithubpwd = the password for my github.com user

repoUser = the user owner of the repo

repoName = the name of the repo

 

你可能感兴趣的:(proxy,git,config)