1. #!/bin/bash
  2.  
  3. #Checkout source as at last prod deploy
  4.  
  5. tag=$(git tag | grep deploy-prod | tail -1)
  6.  
  7. git checkout $tag