GitHub Project upload Operation steps

Source: Internet
Author: User

First right-click Git bash here at the project file location

Create an SSH key locally

" [email protected] "

In order to verify success, enter it under GIT bash:

$ ssh-t [email protected]

In the local users/bear/.ssh, locate the. pub file to copy the key to Github-setting-key. New Inside

Set up username and email, because GitHub will record them every time a commit.

$ git config--global"your name"-global"[email Protected]"

Initialize git:

$ git init

To add a file that needs to be added to git:

$ git Add.

To submit the code to a local directory:

" First upload "

Go to the repository you want to upload add remote address:

$ git Remote add origin [email protected]:yourname/yourrepo.git

Push changes
Your changes are now in the HEAD of the local repository. Execute the following command to commit the changes to the remote repository:

$ GIT push origin master

Ok!!

GitHub Project upload Operation steps

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.