Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Created November 4, 2010 10:54
Show Gist options
  • Save rentalcustard/662328 to your computer and use it in GitHub Desktop.
Save rentalcustard/662328 to your computer and use it in GitHub Desktop.
Checkout state of code at last cap deploy to production.
#!/bin/bash
#Checkout source as at last prod deploy
tag=$(git tag | grep deploy-prod | tail -1)
git checkout $tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment