我正在按照下面的教程将更改推送到我的 OpenShift 应用程序。
$ git clone <git_url> <directory_to_create>
# Within your project directory
# Commit your changes and push to OpenShift
$ git commit -a -m 'Some commit message'
$ git push
Git 不是将更改推送到 OpenShift,而是推送到 GitHub。如何将更改推送到 OpenShift?提前谢谢你。
最佳答案
如果您从 GitHub git clone
,您的 Git 远程将被设置为推送回 GitHub。您可以将此 Remote 更改为指向 OpenShift:
git remote set-url origin ssh://YOURUSERID@foo-bar.rhcloud.com/~/git/foo.git/
您可以从 OpenShift 网站获取相关特定域的此 URL。
关于git - 将更改推送到 OpenShift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30418861/