码迷,mamicode.com
首页 > 其他好文 > 详细

[git push] rejecteded 问题的解决方法

时间:2014-11-01 20:34:05      阅读:883      评论:0      收藏:0      [点我收藏+]

标签:git

错误信息:


hint: Updates were rejected because a pushed branch tip is behind its remote

hint: counterpart. Check out this branch and integrate the remote changes

hint: (e.g. ‘git pull ...‘) before pushing again.

hint: See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details.


解决方法:


1、先pull到本地

2、设置到当前分支为默认push分支 git config --global push.default "current"

3、然后再git push就可以了

[git push] rejecteded 问题的解决方法

标签:git

原文地址:http://blog.csdn.net/paulery2012/article/details/40683609

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!