The script attempts to be agnostic to both git version and gitconfig
settings.
To mimic the script in a git alias, run the following command:
git config -g alias.mkbranch '!foo() { git fetch origin && git checkout -b "$1" "${2:-origin/master}" && git push -u origin "$1":"$1"; }; foo'