I'm not sure the ```set -e``` here is working... I had git fail and the script continued blithely on. 
My "upstream" repo is an https URL so it asks me for authentication every time, so I don't accidentally push there, which is how I noticed.