You may want to update your installation and documentation setup material. As @darkwiiplayer
mentions, Git defaults to master. Since GitHub, GitLab, Atlasssian, and most new training material refers to main, it would be a good idea to use the same standard.
More than just point out how to change the config, I think it's important to explain that both standards exist and where they're used. There's still lots of master branches on github and people have occasionally used main long before any big platform made the switch. I'm sure there's at least one repo somewhere out there where the default branch is called potatoes.
Suhail is a software developer specializing in full-stack web and mobile application development. He is interested in contributing to open source and building Web3 applications.
You may want to update your installation and documentation setup material. As @darkwiiplayer mentions, Git defaults to master. Since GitHub, GitLab, Atlasssian, and most new training material refers to main, it would be a good idea to use the same standard.
Could you add this to inform your readers?
git config --global init.defaultBranch main
Great article!
More than just point out how to change the config, I think it's important to explain that both standards exist and where they're used. There's still lots of
master
branches on github and people have occasionally usedmain
long before any big platform made the switch. I'm sure there's at least one repo somewhere out there where the default branch is calledpotatoes
.Sure Bill, Thanks
Thanks!