DEV Community

Discussion on: An Ultimate Guide to Git and Github

Collapse
 
billraymond profile image
Bill Raymond

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!

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

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.

Collapse
 
suhailkakar profile image
Suhail Kakar

Sure Bill, Thanks

Collapse
 
billraymond profile image
Bill Raymond

Thanks!