failed to push some refs to ‘https://xxx.git’

To https://xxx.git
! [rejected] develop -> develop (non-fast-forward)
error: failed to push some refs to ‘https://xxx.git
hint: Updates were rejected because a pushed branch tip is behind its remotehint: counterpart. If you did not intend to push that branch, you may want to
hint: specify branches to push or set the ‘push.default’ configuration variable
hint: to ‘simple’, ‘current’ or ‘upstream’ to push only the current branch.

  • 解决方案
    本地工作空间中的项目位置
    右键打开git工具命令行 git bash here
    git status
    git log
    git pull origin brancheName
    git push origin brancheName

猜你喜欢

转载自blog.csdn.net/mingyundezuoan/article/details/80028816
今日推荐