【个人笔记】error: failed to push some refs to 'https://github.com/问题

在GitHub中添加了readme文件之后,使用git push上传时,出现这样的错误,原因就在与GitHub中添加了readme文件,而本地项目文件夹中没有readme文件,所以导致了上述错误,可以使用下述命令,将代码合并,然后继续进行你的git push操作即可:

git pull --rebase githubRepo master  这里面的githubRepo是远程库的名字。

猜你喜欢

转载自blog.csdn.net/flysky_jay/article/details/80449075