When you deploy the source code using
git push, OpenShift executes a new build, creates a deployment, deploys it to the respective server, and then starts your application container. By default, it will only track the last deployment of your application, which means you can't roll back to a previous deployment. In this recipe, you will learn how to configure your application to track multiple deployments and roll back to a particular deployment.
To step through this recipe, you will need to have rhc installed on your machine.
Perform the following steps to learn how to configure applications to track multiple deployments and roll back to a previous version: