Use goagent to submit code to GitHub

Source: Internet
Author: User
Tags goagent
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.