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