GitHub Quick Start and github Quick Start

Source: Internet
Author: User

GitHub Quick Start and github Quick Start

1. Create a project on GitHub

Follow the steps to create a code library on github


Address of the project on github after creation: https://github.com/linlin1314/QY

2. upload code

You need to clone the github project to your local location, modify the local project, and submit it again.


Create a repository: (generally, go to the directory of the folder to be uploaded)

1 git init

Select the file to be added to the repository:

1 git add.

Generally, if you want to share all the code in this folder, add ". ", the above example is like this. If you specify the parameter, you only need to set". "change to the file name. Now, you only select the file to be added to the repository. The following shows how to add the file to the repository:

1 git commit-m' comment'

-M is followed by a parameter, indicating that after the code is submitted to GitHub, the description, such as the marked place, will be displayed on the code file information.

After so long, I began to upload the local repository to GitHub. The following two commands solve the problem:

1 2 git remote add origin git@github.com: XXX/XXX. git3 git push-u origin master

ThisThe git@github.com: XXX/XXX. gitThat is, the address generated when the project is created above. Now, open your project URL and you will find that your code has been displayed. If you want to update the code, repeat the above.


Related Article

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.