About uploading local project files to GitHub

Source: Internet
Author: User

Really super helpless, Baidu on the search for a long time to take their own files uploaded to GitHub, how long? A few hours < Bay stretched out >

So I have to hurry to record, in case of a rainy, afraid of himself and forget

1 You first have to install Git on your computer

2 registering an account on GitHub

It's all very simple, it's not written in detail.

3 Open a warehouse on your own githu.

Click on the + sign new repository to build a warehouse name, and here I am repository4. Next, right-click Git bash:<1> on the root of the project file you're about to upload, create a local repository git init initialize the local repository git add-- All add project files to the tracking list git commit-m "My bootstrap Case" (some descriptive statements can be as follows)

$ git remote add origin [XXX]

"XXX" is the link you get url,remote refers to a remote Git repository

$ Git push-u Origin Master

Push the local repository to the remote,-u means that the file is uploaded in a streaming way

Refresh the GitHub page to see that the local git repository has been successfully uploaded

It's done!

About uploading local project files 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.