Local New Project uploaded to GitHub

My computer is a windows system, so mainly on the operating system on windows

First, register your own account on the website gitHub

gitHUb URL .

Second, git installed on their computers

Download the installation package git git official website , of course, there are other ways to download, you can own Baidu.

Third, after installing git we began to prepare to upload your own project, you first need to upload their code to the local library

1, to project their own written document folder, as shown:

 
 

2, I want my written before the project jsComponent spread gitHub, you will need to click into jsComponent folder, empty place, hold down the shift, the right mouse button, click on the "Open Command Window Here" as:

 
 

3, enter the command git init, created for this purpose so that a local library item, go back and look at the folder will have a green check mark, as shown:

 
 

4, re-enter the project folder, create a new file README.txt, it is important to note that the provisions of the project must have uploaded the file on gitHub,

 
 

5, hold down the shift, in the right place blank mouse, click on the "Open here command" git add command input:

 
 

 

 
 

6, and then bring up the command window, execute git commit -m "xxxx", xxx to commit, facilitate their later each submitted what, so will their own local projects submitted to the library

 
 

 

 
 

Fourth, and we will upload items to their local library, and now you want to project is uploaded to gitHub, so we need to create a new warehouse on gitHub, as a remote database for this project,

Enter the personal home page on the gitHub, click on the new repository button to create a new project as a warehouse for themselves, as this warehouse to warehouse project I want to upload, and the name of the warehouse had better be consistent with their Project Name:

 
 
 
 

 

 
 

Fifth, after the remote repository built, you need to upload their own projects from the local warehouse to just-built warehouse of:

Execute git remote add origin [email protected]: jianwenjuan / jsComponent.git;

 [email protected]: jianwenjuan / jsComponent.git ssh address this for their own warehouse

 
 

Execute git push -u origin master, so the project will be uploaded to the gitHub

 

 
 

 

 
 

 

 
 

 

Summary: If you have not done before such an operation will encounter many pit, would not be so successful, then the next article to explain how to solve problems you might encounter



Author: Jane Jane _cb67
link: https: //www.jianshu.com/p/6e5547186c83
Source: Jane books
are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Guess you like

Origin www.cnblogs.com/yadongliang/p/12204115.html
Recommended