Follow these steps in the directory where the local project is located
echo # test >> readme.md
git add readme.md
Git commit-m"First commit"
Git remote add origin https://Github.com/qhorse/test.git
Git push-u Origin Master
$ git Remote add origin https://Github.com/qhorse/test.git
Fatal:remote origin already exists.
The solution is as follows:
1, first enter the GIT remote RM origin
2, and then enter git remote add origin https://Github.com/qhorse/test.git
You won't get an error!
Last step Upload
How to upload a project from the local to GitHub