failed to push some refs to 'git@github.com:cq1415583094/MyBatis.git'解决办法

    将本地git仓库代码提交到GitHub上时,出现failed to push some refs to 'git@github.com:cq1415583094/MyBatis.git'

    导致的原因是GitHub上存在一个readme.md的文件,解决

1、git pull将远程与本地合并

1 $ git pull --rebase mybatis master

2、重新git push

1 $ git push -u mybatis master

欢迎志同道合朋友,加QQ群:119126035,QQ:1415583094,微信:cq1415583094
我的GitHub:https://github.com/cq1415583094
公众号欢迎关注

原文地址:https://www.cnblogs.com/chuanqi1415583094/p/9608710.html