Default branch for a new repository git hub
By default, when you create a new repository on GitHub, the default branch is named main
. This was changed from master
to main
in June 2020 to better reflect the idea that the main branch of a repository is the primary branch where development happens, rather than a branch that represents a "master" version of the code.
Prior to June 2020, the default branch for a new repository on GitHub was indeed master
. However, with the shift towards more inclusive and diverse language, GitHub decided to rename the default branch to main
to better align with the company's values and to provide a more welcoming environment for all users.
So, if you create a new repository on GitHub today, the default branch will be main
, and you can start working on your project right away!