我无法将自己的项目推送到我的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.
我想我需要先提示,因为提示说但是它会在我的源头上运行,我想推到那里
答案 0 :(得分:0)
首先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.