`git branch` upstream-setting fixes

also helper script for checking installed `git` version
wowwww, v cool