Git 前面是主支路4号。不能推。吉特

Git 前面是主支路4号。不能推。吉特,git,Git,我在尝试推送提交时出现以下错误。我试过拉然后再推,但似乎不起作用 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-f

我在尝试推送提交时出现以下错误。我试过拉然后再推,但似乎不起作用

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

在将更改推送到远程之前,必须使用远程分支更新本地分支。

git push github master 到git@github.com:Joey project/project.git ! [已拒绝]主机->主机(非快进) 错误:无法将某些引用推送到'git@github.com:Joey project/project.git' 以前在这里讨论过。这是一个常见的错误

如果我没记错的话,必须使用以下命令的变体:

git fetch github; git merge github/master
也许这个链接可以帮助:。这似乎有关联


祝你好运!我希望它能帮助你

你在哪个分支机构工作?是的,我设法解决了。我想我删除了这个问题。谢谢你!是的,我设法修好了。我想我删除了这个问题。谢谢!!:)