尝试推送提交时出现以下错误。我试过先拉然后再推,但似乎不起作用。
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
Pushing to https:*"repository"*
To https**"repository"**
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to *"repository"*
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
您必须先使用后git pull
才能推动。
在将更改推送到远程之前,必须使用远程分支更新本地分支。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句