GetDefaultGitBranch

nicolaw 27th September 2021 at 4:03pm
Git
git remote show origin | grep 'HEAD' | cut -d':' -f2 | sed -e 's/^ *//g' -e 's/ *$//g'