gpt4 book ai didi

git - 将更改推送到 OpenShift

转载 作者:太空狗 更新时间:2023-10-29 13:50:19 26 4
gpt4 key购买 nike

我正在按照下面的教程将更改推送到我的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com