Git -push错误

时间:2012-12-19 07:14:39

标签: git git-push

  

可能重复:
  Git Fast-Forward Merge requires a pull first

     Pushing to git@github.com:ravi-saxena/locpla.git

错误:

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.

我在推送最近创建的新存储库时遇到此错误。

1 个答案:

答案 0 :(得分:0)

首先制作git pull,然后制作git push