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

错误信息:


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就能够了

posted on 2017-05-12 16:04  blfbuaa  阅读(711)  评论(0编辑  收藏  举报