Use git upload a local folder to a remote repository, use the following command: being given git push -u origin master
The reason is created when the GitHub repository create a readme file, but this is not a local file, resulting in a local directory with a remote directory inconsistencies.
Workaround: Use the command git pull --rebase origin master merge
Upload it again, success!