Removing and Deleting old git releases

There comes a time when you don’t need all your releases of your gitified app on your server. It just takes up way too much space. In this event, you can issue the following command for your capistrano deploy

This, of course, assumes you’ve already setup Capistrano to work with Git for your project.

cap deploy:cleanup

It might take a while to delete all those though so just be patient. I had 150 releases to delete and it took about 7 minutes.

How to remove and delete old git releases

Comments