Uploading code to github for the first time

1 Register a github account

2 It is best to set another ssh password-free setting: http://java-holding.iteye.com/blog/2355969

3 After setting the 2 steps, you can directly upload and download the code without entering the user name and password.

4 I think the easiest and easiest way to upload code to github for the first time:

  a. Create a warehouse on github, as shown in the following figure:

        

      After following the steps to create a new remote repository.

  b. Click the warehouse name you just created, or find your warehouse address on the current page.

    

   Copy, in the command line: enter git clone url to download the code to the local folder you specify

 

  c. Then copy the code you need to upload to this folder, or you can create a project directly in this folder.

  d. After that, you can upload the code according to the general operation. You can use some IDE development tools,

     You can also use the command line as follows:

    git add + needs to be uploaded to a file or git add . Add all files in the current directory

    git commit -m "message" 

     git push origin + remote branch name

           

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326309147&siteId=291194637