Upload the local project on GitHub

1, with a GitHub account ( https://github.com/ )
2, download Git tools ( https://gitforwindows.org/ )
all the way next when downloading
3, create a new repository on GitHub, copy the following address
Here Insert Picture Description
4, right- click the project file you want to upload, choose Git Bash Here (Note: only appears after downloading Git)
5, type in the command
git clone https://github.com/joke-tell/Test.git

(Note: https: //github.com/joke-tell/Test.git address is the third step in the picture, right directly Paste)

6 ,. This time your local project folder below will be more of a folder, the folder name that is above your github project name, as I and more out of a Test folder, we have a local project folder all files (except the new file folder without extra), the rest are copied to the new extra folder, and
Here Insert Picture Description7, and then enter the following command in the command line git:

the Test cd
(the Test as the repository name)

the Add git .
(Note: Do not forget the back . This operation is the Test folder following files are added to come)

git commit "to submit information" -m
(Note: "Submit information" which replaced the information you need)

When the input git commit "to submit information" -m, the following tips may appear, at this time, follow the prompts to enter the command, you can set the name and email

Origin Master push -u git
(Note: This operation aims to push the local repository to github above, this step requires you to enter account number and password)

8, returns to the GitHub repository, the display will refresh the project

Published 29 original articles · won praise 4 · Views 4683

Guess you like

Origin blog.csdn.net/onion___/article/details/104908355