Upload a github project code

  Github into the home page, click New Project new repository, as shown below:

  Then enter the following page, fill in the information:

  Finally, click Create repository, generate the following page:

  Step painted red circle, first click Clone or download, and then copy the address of the second step, the project will be uploaded to be helpful.

  The next step is a local operation, and before that you must take git installed, and then locate the folder you want to upload the project, right-click on the folder (note: not the menu files or archive) will be in option in

  Git Gui Here, Git Bash Here appears, select Git Bash Here, there will be the following figure:

  

  Then before you copy the clone or download in the figure below and paste the address, or manually enter:

  Remember earlier address to add git clone.

  Then your project file will increase a project name you created on github, as shown below:

  After you copy this directory to upload files to skczw folder.

  Then git skczw command-line switch in the directory file, enter the command cd skczw enter, as shown below:

  Then enter the command "git add."

  Then enter git commit "to submit information" (information submitted your project description) -m

  This fast upload was successful, and finally enter the command git push -u origin master (the purpose of this operation is to push the local repository to github above, this step requires you to enter account number and password to log on github)

  Then enter in the github page, refresh the page will display your project, as shown below:

  So that your project is successfully uploaded.

Guess you like

Origin www.cnblogs.com/songtianfa/p/11459750.html