error: failed to push some refs to '......'解决方案

由于是初学者,又因为最近项目需要,只好边学边用吧。

在使用  “git push origin master” 时出现了以下问题

网上搜到的解决方案,可用:

先输入:

git stash(用于暂存当前状态)

然后:

git push origin 分支名

最后:

git stash pop(用于恢复暂存区和工作区)。

参考:

http://www.tuicool.com/articles/rUBNBvI

http://blog.sina.com.cn/s/blog_7e04e0d00101f93r.html

原文地址:https://www.cnblogs.com/libertycode/p/5364446.html