1. On the command line, enter "Git init" to add the test folder to git management;
2. Enter "git Add." (Don't miss out ".") ) to add all the contents of the test folder to Git.
3. Enter "Git commit-m" first commit "" ("Git commit-m" commit message ")
4. Enter "Git remote Add origin https://github.com/userName/File.git" (Git remote add origin your own HTTPS address) to connect to your Guthub repository.
5. Enter "Git push-u origin master" and upload the project to GitHub. This will require you to enter GitHub's account password and enter it as required.
Httprequestexception encountered problem when connecting to GitHub in step 4th
FIX: Github disables TLS v1.0 and v1.1 and must update the Windows Git Credential Manager
Through this URL https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/
Install the restart Git window after download
$ git Remote add Origin https://github.com/userName/File.git
Username is your username file is the repository name you built yourself
$ git Remote RM origin
It's ready!!
GitHub upload Steps