How to git-checkout first application created on OpenShift?

為{幸葍}努か 提交于 2020-01-06 08:27:14

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/11366396/how-to-git-checkout-first-application-created-on-openshift

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!