GitHub code submission

Source: Internet
Author: User

1. Add a new sshkey to the GitHub account to establish an SSH connection with GitHub locally.

(1) execute the ssh-keygen command locally to generate a new SSH key pair

 
# Ssh-keygen

(2) modify. in the id_rsa.pub file under the ssh/directory, change "=" to the email address of your GitHub account (the current login user is root)

 
# Vi/root/. Ssh/id_rsa.pub

(3) log on to GitHub, set --> SSH keys, click "add SSH key", "title", and set step (2) copy and paste all the content of the modified id_rsa.pub file to "key" and click "add key ".

Ii. Submit code

(1) clone the GitHub project to a local device.

 
# Git clone-V [email protected]: xxx/xxx. Git

(2) copy the file to be submitted to step (1) and clone it to the local directory.

(3) Add the content to be submitted

 
# Git add *

(4) set submission description

# Git commit-as-M "Description"

(5) Push code to GitHub

 
# Git push


This article is from the "blackart" blog, please be sure to keep this source http://blackart.blog.51cto.com/1142352/1544610

GitHub code submission

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.