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