Cloning the application Git repository using rhc

In the Cloning the application to the local machine recipe in Chapter 1, Getting Started with OpenShift, you learned how to clone the Git repository using the Git command-line tool. This recipe had a couple of steps—first, to copy the Git repository URL from the web console and second, to use the git-clone command to clone the Git repository. The rhc command-line tool can help you save some keystrokes. In this recipe, you will learn how to use rhc to clone the Git repository.

Getting ready

To step through this recipe, you will need rhc installed on your machine. Also, we will use the OpenShift application created in The Creating an OpenShift application using the rhc command-line client recipe.

How ...

Get OpenShift Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.