Uploaded the code to github for the first time.
I encountered a problem in the middle. After connecting to github locally, I couldn't upload it.
Prompt message: fatal: Couldn't find remote ref master
After Baidu, I learned that the command was wrong: $ git push -u origin master
one less -u
References:
Learning to upload: http://blog.csdn.net/hanhailong726188/article/details/46738929
Correct the error: http://hellokugo.blog.51cto.com/9827529/1615715
The address uploaded by github: https://github.com/snszwh/test-