When submitting the code to github not the first time, the code is rejected submission, suggested as follows:
Updates were rejected because the remote contains work that you do
Solution: First pull at remote warehouse code,
git pull origin master // change the local repository connection to a remote repository main branch
And then submit:
git push -u origin master // the local repository of files pushed to the remote repository (abbreviation: git pull);
Submit all of the steps of the code:
1. git init // initialize warehouse
2. git add * // add files to a local repository
3. git commit -m "first commit" // add file description information
4. git remote add origin + remote warehouse address // link remote repository, create the main branch
5. git pull origin master // change the local repository connected to a remote repository main branch
6. git push -u origin master // push the local repository of files to a remote warehouse