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.
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.