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

posted @ 2016-04-07 17:14  戎码之路  阅读(6348)  评论(0编辑  收藏  举报