1, issue: execute git remote add origin [email protected]: yylxm / Git.git
Problems fatal: remote origin already exists.
Solution: git remote show all the remote library, then deleted using git remote rm origin of the origin.
2, problem: using git push -u origin master pushes local library to github
issues appear fatal: I do not handle protocol 'git @ https'
The solution: the use of repositories git remote add origin http://github.com:yylxm/Git.git,Git.git is created on github.
3、问题:执行$ git push -u origin master
出现问题 Username for 'https://github.com': yylxm
To https://github.com/yylxm/YYXQZ.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/yylxm/YYXQZ.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Solution: The main reason is the wrong github README.md file that is not in native code directory,
May be combined by the command code Note: pull = fetch + merge git pull --rebase origin master]
Then the command git push -u origin master github upload completion code of the operation.