add gitcmd.sh

This is a script I use to keep my various layers up-to-date. I had to add fail
logic because of various problems going through corporate firewalls and such.