Introduced into native code GitHub

Suppose you have a local disk project code, before you have not used version control tool. Now you want to import it into GitHub in that in the end how to do it?

 

Below, when we GitHub to create a new in Repository appears when one of the following interface, there is the bottom of the Import button, this can help us server pulls our code to from a version later control GitHub , it needs a url to specify your code, it is clear in this way that we can not meet the requirements to import native code.

 

 


 

 

We need to do is:

1. In GitHub creation of a new Repository , assume the name test

2. install Git

3. Open the console, navigate to your project code directory

4. execute git init


The increase Remote , performed gitremote the Add Origin http://www.github.com/xxx/test


6. introduced into GitHub , execute git push -u origin master

 

The above operations are performed can be introduced into the native code GitHub in. The same procedure can be used similar to native code added GitHub code management server's outside.

Published 55 original articles · won praise 39 · views 80000 +

Guess you like

Origin blog.csdn.net/Chinese521/article/details/42487425