`git branch` upstream-setting fixes

also helper script for checking installed `git` version
great, done