I'm deploying an app to Heroku, which means pushing to their git repo. When do git push heroku master
(or the equivalent remote alias) I get this warning:
WARNING: You're about to push to master, is that what you intended? [y|n]
Which is kinda annoying but not a big deal. However, I'm now scripting deployments so I don't want to have interact with the script - how I do get my bash script to answer y
automatically?
I tried doing yes | git push heroku master
but that doesn't work.