GitHub Quick Start----Create and upload projects

Source: Internet
Author: User

1. Build a project on GitHub

Follow the steps to create a code base on GitHub


Post-creation project on GitHub address: Https://github.com/linlin1314/QY

2. Uploading Code

You need to clone the project on GitHub locally, modify and resubmit the project locally.


Build a warehouse: (generally enter the required folder directory to upload)

1 git init

Select the files to add to the warehouse:

1 git Add.

In general, if you want to share all the code in this folder, add "." After add, the example above is this, if you pass the specified, only need to put "." To the file name, and now just select the files to be added to the warehouse, the following is added into the warehouse:

1 ' Notes '

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

It took so long to start uploading the local repository to GitHub, and the following two lines of command fix the problem:

 1  Span class= "Lineno" style= "margin:0px; padding:0px; border:0px; outline:0px; Vertical-align:baseline ">2  git Remote add origin [Email protected]:xxx/xxx.git3  git push-u Origin master 

This [email protected]:XXX/XXX.git is the address above which the created project is generated. Now open your project URL and you can see that your code has been shown. If you want to update the code, repeat it.


GitHub Quick Start----Create and upload projects

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.