Cannot get Http on git to work

江枫思渺然 提交于 2019-11-27 05:22:52
VonC

If your firewall allows https, you can use the https-based address of your GitHub repo to push/pull.

You need:

  • to define in your gitbash session http_proxy and https_proxy environment variable (to the right proxy, with your internet login and password):
    export https_proxy=http://<login_internet>:<password_internet>@aproxy:aport
  • to define where your git will look for the CAs:
    git config --system http.sslcainfo /bin/curl-ca-bundle.crt
  • to make sure you have a HOME environment variable defined (to any directory you want)
  • to have in %HOME% a _netrc file (note the '_') with in it:
machine github.com
login YourGitHubLogin
password YourGitHubPassword

From there, all your git pull/git push from and to GitHub repo will work!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!