git 本地推送远程仓库报错: error: failed to push some refs to 'https://github.com/yangtuothink/mxonline.git'...

 报错现象

添加远程仓库后 

推送代码的时候报错

git 本地推送远程仓库报错: error: failed to push some refs to 'https://github.com/yangtuothink/mxonline.git'...

报错分析

远程代码和本地代码不匹配问题

远程初始仓库的创建有些默认 的 README什么的本地是没有的

需要先同步后再上传

报错解决

git push -u origin master

 git 本地推送远程仓库报错: error: failed to push some refs to 'https://github.com/yangtuothink/mxonline.git'...

git 本地推送远程仓库报错: error: failed to push some refs to 'https://github.com/yangtuothink/mxonline.git'...