How to Change Git Default Branch to "main" from "master"
tl;dr
git branch --move master main
git remote set-head origin --auto
https://github.com/mazgi-sandbox/202010.change-git-default-branch
git branch --move master main
git remote set-head origin --auto
https://github.com/mazgi-sandbox/202010.change-git-default-branch