GitHub Code Upload Tutorial

Source: Internet
Author: User
Tags version control system

GitHub Upload code Step one, Git and GitHub

Git is a fast-growing version control system that is maintained by GitHub. Advantages:

1, support offline development, offline repository.

2, powerful branch function, suitable for multiple independent developers to collaborate.

And GitHub is a Web site that hosts git (open source or closed) projects

Second, register an account on GitHub and create a project

This is the official GitHub address, where you can register: https://github.com/, and then click Start a Project.

Fill in the Project name and click Create Repository to build a warehouse

Where description is the description

Third, to initialize the local project and submit

The code is entered in the following order:

Git init

" Remote Warehouse address http or SSH "

Entering the above code will find that a local folder is created under the Disktop path named after your project name

Just copy your project into your local folder

After that the CD enters your project's folder as follows:

Then submit to your Gihub project in the Bush to lose the following code:

git Add.

Note: There are spaces after add, as follows

Then use the command:

" Init "

Note: Init represents the description of the uploaded code, that is, if the code was first uploaded, it could be

Subsequent changes can be made to the appropriate version: you decide by yourself as follows:

Last input:

Git push Origin Master

But the first time I typed it, the following error occurred:

After looking at the Big God blog point, found that may be my git version has a problem, but later after I have tried, found that as long as the number of input username and password wait until the address of the pop-up box is not garbled the case of the submission will be successful, the specific reasons are not clear, the follow-up will fill. In conclusion, the code is submitted in the final steps, as follows:

Refresh on your github to see that your own code has been uploaded.

The diagram lets you create a Readme file that lets you create a description file that can be formatted with Mark Text.

Reference Blog Address:

Https://www.cnblogs.com/ECJTUACM-873284962/p/9195471.html

Another more detailed introduction to many of GitHub's other features is available on:

53522872

GitHub Code Upload Tutorial

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.