#!/bin/sh
#
# git-master-name - return the "default" branch name for a git repo
# it used to almost always be master. but now it might be main because $reasons.

git remote show origin | rg 'HEAD branch: (.*)' -or '$1'
