error: failed to push some refs to ‘https://gitee.com/lvjiangshan/redmine/’
hint: Updates were rejected because the tip of your current branch is behind
To https://gitee.com/lvjiangshan/redmine/
hint: its remote counterpart. Integrate the remote changes (e.g.
! refs/heads/master:refs/heads/master [rejected] (non-fast-forward)
Done
hint: ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push --help’ for details.
进入项目目录

在git里面输入下面的代码
git pull --rebase origin master
git push -u origin master
回去重新推送,问题解决
当尝试推送Git更新到远程仓库时遇到错误,提示当前分支落后于远程分支,需要先执行`gitpull--rebaseoriginmaster`来整合远程变化,然后才能成功推送。按照这个步骤解决了推送问题。
3642

被折叠的 条评论
为什么被折叠?



