There are a number of ways to upload your code to GitHub, and here I'll show you a more simple one. Tools, the simpler the more useful ah.
1. First download the GitHub client under Windows
: https://desktop.github.com/This client needs to download some packages online. When installed, the following two icons appear:
2. Upload Code
The general situation needs to be all the documents under the project to upload, the concrete way is as follows:
(1) Open git Shell
(2) Enter your project directory
(3) Perform the following command to upload:
Git init
git Add. Note the last one. Symbols
Git commit-m "First commit"
Git remote add origin remote repository URL
git remote-v //This is used to see if you added success above
git push Origin master
3. Download the Code
(1) Open git Shell
(2) Enter the folder you want to place
(3) Git clone remote repository URL
Windows uploads code to GitHub