Git 2.28 dropped yesterday (July 27, 2020) and it brings a nifty feature to set a default branch.
$ git config --global init.defaultBranch main
Any projects initialized with git init
will now use the branch name main
.
For more highlights of Git 2.28: https://github.blog/2020-07-27-highlights-from-git-2-28/
Timely