我在将我自己的项目推向我的openshift源代码时遇到了麻烦。
当我在我本地的项目主分支中时,我用我的openshift源代码创建了一个远程openshift存储库:
git remote add openshift [ssh://....@nodejs-<app_name>.rhcloud.com/~/git/nodejs.git/然后:
git push openshift master我得到了:
To ssh://..../~/git/nodejs.git/
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://....nodejs.git/'
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.我想我需要先拉,就像提示所说的那样,但它会超过我想要推送到那里的源码
发布于 2015-04-11 20:02:27
首先执行git pull,然后执行git push。
它已经在说-
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.https://stackoverflow.com/questions/29577621
复制相似问题