ArticleDirectory
- 1. Modify the GIT Protocol
- 2. Set Environment Variables
- 3. Submit code to GitHub
Today, the Greater China Local Area Network went crazy, and many websites could not be opened. I don't know if it is software fault or because of the college entrance examination. ButProgramWhether he is crazy or not, submit the ticket.CodeYou still need to submit the code. Here we will teach you how to use goagent to submit code.
1. Modify the GIT Protocol
GitHub allows us to submit code in two ways: SSH and HTTPS.
Https:
SSH:
If your library uses SSH to submit code, we should first change SSH to https:
2. Set Environment Variables
I am using cygwin. You can set the environment variables in this way to enable git to use HTTP Proxy during submission:
$ Declare-x https_proxy = "127.0.0.1: 8087"
3. Submit code to GitHub
This step is almost the same, but if you push the Code directly, the following error will be reported:
SSL Certificate problem: Unable to get local issuer certificate while accessing https://github.com/jatsz/s3uploader.git/info/refs
Fatal: http request failed
We can temporarily set the environment variable so that git can skip the certificate check:
$ ENV git_ssl_no_verify = true git push
Refer:
Http://stackoverflow.com/questions/128035/how-do-i-pull-from-a-git-repository-through-an-http-proxy
Http://stackoverflow.com/questions/3777075/ssl-certificate-rejected-trying-to-access-github-over-https-behind-firewall