Checkout branch when using existing git repo
Only run Heroku command on successful push