Skip to main content

moregeek program

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:proxypwd@proxy.server.com:8080  
  2. $ git config --system http.sslcainfo /bin/curl-ca-bundle.crt  
  3. $ git remote add origin https://mygithubuser:mygithubpwd@github.com/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


 

©著作权归作者所有:来自51CTO博客作者6566232的原创作品,如需转载,请注明出处,否则将追究法律责任
Git proxy configuration 设置代理服务器
https://blog.51cto.com/snowdream/1098219