在终端上提交代码到github上遇到这样的问题failed to push some refs to git...
搜索一下发现是github上readme文件没有同步到本地上
可以通过如下命令进行代码合并【注:pull=fetch+merge]
git pull --rebase origin master
此时再执行语句 git push -u origin master即可完成代码上传到github在终端上提交代码到github上遇到这样的问题failed to push some refs to git...
搜索一下发现是github上readme文件没有同步到本地上
可以通过如下命令进行代码合并【注:pull=fetch+merge]
git pull --rebase origin master
此时再执行语句 git push -u origin master即可完成代码上传到github