git uploads items to GitHub

Source: Internet
Author: User

1. Registered Account

https://github.com/

2. Create a warehouse

3. Need to install Git

http://msysgit.github.com/

4. Create the SSH key locally ( not necessary, do not create SSH can ignore the 4th step )

Follow the steps to enter directly on the line

Ssh-keygen-t rsa-c "[Email protected]"

Verify that SSH key is successful

ssh-t [email protected]

There will be. SSH Folder-open folder

Open id_rsa.pub copy inside the content

To paste to GitHub, follow these steps:

Https://github.com/settings/keys

5. Join the GIT repository

Git init

6. Join the submission task staging area

git Add.

(Note: on behalf of all, if uploading the specified file can be replaced by a file name.) )

7. Submit

git commit-m "comment statement"

8 . Link the local warehouse to GitHub and execute the. config in the Git folder will add content

Git remote add Origin https://github.com/eeds-wangwei/work.git

9, to pull a bit first

Git pull Origin Master

10. upload code to github remote repository

Git push-u Origin Master

Enter GitHub user name/password

That's OK.

git uploads items to GitHub

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.