You can now chance the default Git init branch name from master to main or anything else you find more appropriate. The default branch name in GitHub for new repositories has already changed from master to main. You might want to make the same change to your own Git installation. Here I demonstrate how. But really, it's quite simple. Just a matter of issuing one of the following Git commands:
git config --global init.defaultBranch main
git config --system init.defaultBranch main
git config --local init.defaultBranch main
It's worth noting that the ability to change the default Git branch name from master to main is only available since the Git 2.28 release. If you're using an older version, to you won't be able to change the default Git init branch name from master and will instead need to change the branch name after the Git init has completed.
Смотрите видео How to Set the Default Git Branch Name from Master to Main онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Cameron McKenzie 30 Октябрь 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 11,144 раз и оно понравилось 178 посетителям.