Find default git branch name

January 15, 2025 ยท View on GitHub

git remote show origin | awk '/HEAD/ {print \$3}'