如何在OpenShift上创建第一个应用程序? [英] How to git-checkout first application created on OpenShift?

查看:108
本文介绍了如何在OpenShift上创建第一个应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是git新手(来自Subversion)。我正在探索 OpenShift ,并创建了一个帐户以及第一个应用程序。据我所知,一些代码已经创建。



我已经安装了TortoiseGit(我在Windows 7下),我想签出为我的应用程序创建的代码。我相信我必须执行一个git克隆,但使用哪个URL?如何在我的本地PC上签出代码?



更新

我删除了我的应用程序,安装了客户端工具集并从那里重新创建了应用程序。我正在面对另一个问题,但我会打开一个单独的问题。

当您安装他们的客户端工具集时,他们的 https://openshift.redhat.com/app/getting_started 页面,然后制作一个新的应用程序,它已经做了一个git克隆,并为您设置远程回购。该目录将与您在设置域和项目时所提供的应用程序名称相同。



从那里开始,发布只需向主分支提交,然后按(这是通用的基本git)。你应该先为你添加或更新的单个文件启动git add,然后:

  git commit -m你的消息
git push


I am new to git (coming from Subversion). I am exploring OpenShift and created an account, together with a first application. As I understand, some code has already been created.

I have installed TortoiseGit (I am under windows 7) and I would like to checkout the code created for my application. I believe I must perform a git clone, but with which URL? How can I check-out the code on my local PC?

Update

I have deleted my application, installed the client toolset and recreated the application from there. I am facing another issue, but I'll open a separate question.

解决方案

When you install their client toolset, as described in their https://openshift.redhat.com/app/getting_started page, and you make a new application, it already does a git clone and sets up the remote repo for you. The directory will have the same name as the app name you gave when you setup your domain and project.

From there, publishing is simply committing to the master branch and pushing (which are generic basic git). You should probably start with "git add" for the individual files you add or update, and then:

git commit -m "your message"
git push

这篇关于如何在OpenShift上创建第一个应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆