Git+github Upload and manage

Source: Internet
Author: User

1, first download and install git, Easy to manage the code on GitHub

Https://git-scm.com/downloads

2. Then click on the installed GIT bash (sign up for your github)

git config--global user.name "account name"
git config--global user.email "mailbox"

3, then need your secret key ssh

Ssh-keygen-t rsa-c "email"

Enter the end of a certain point to enter the good, no Tube.

And then find the file in the folder with the hint in it with a secret key file.

4, Open github, Enter settings: the SSH key to create a secret key to copy the contents of the secret key file, just change the name

5, After you test the connection is not (if your user name is Ok)

Ssh-t [email protected]

6. Create a warehouse in github, get the URL or secret key, and then CD into your local folder

Git init
Git remote add origin you copy the address

The above link has been completed!

Next do not need to know too much, need to upload and download just fine!

1. All downloads to Local

Git pull Origin Master

2, all uploaded to the warehouse

(1) submitted to Staging area

Git Add.

(2) Description of Upload

git commit-m "commit notes"

(3) last uploaded to the server

Git push Origin Master

Git+github Upload and manage

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.