Git-push错误

Git-push错误,git,git-push,Git,Git Push,可能重复: 错误: To git@github.com:ravi-saxena/locpla.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:ravi-saxena/locpla.git' hint: Updates were rejected because the tip of your current bran

可能重复:

错误:

To git@github.com:ravi-saxena/locpla.git
! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:ravi-saxena/locpla.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

推送我最近创建的新存储库时出现此错误。

首先执行
git pull
,然后执行
git push

git建议您运行
git pull
。是吗?你也应该包括它的输出。@Moshe如何解决这个问题?你确定你在
master
分支工作吗?是的,我在master branchi工作。我已经这样做了,但是出现了相同的错误。
To git@github.com:ravi-saxena/locpla.git
! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:ravi-saxena/locpla.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.