Both Conservancy and the Git project are aware that the initial branch name, ‘master’, is offensive to some people and we empathize with those hurt by the use of that term.
Many communities, both on GitHub and in the wider Git community, are considering renaming the default branch name of their repository from master. GitHub is gradually renaming the default branch of our own repositories from master to main.
A new repository created from this template will have a default branch named master, presumably because this template's default branch is also named master. At some point, a user of the new repository will be prompted by GitHub to rename the default branch to main. As we don't expect this user to be familiar with either Git or GitHub, and so might question the prompt from GitHub, I would argue that we should rename this template's default branch to main.
That said, it would be useful to know:
Whether it's possible (or desirable) to rename the default branch of a repository created from this template but not of this template itself (to avoid impacting maintainers of this template).
When a user of the new repository is prompted by GitHub to rename the default branch to main.
Recently, @richiecroker asked why the default branch had been renamed. From the Software Freedom Conservancy:
And from the github/renaming repository:
A new repository created from this template will have a default branch named
master
, presumably because this template's default branch is also namedmaster
. At some point, a user of the new repository will be prompted by GitHub to rename the default branch tomain
. As we don't expect this user to be familiar with either Git or GitHub, and so might question the prompt from GitHub, I would argue that we should rename this template's default branch tomain
.That said, it would be useful to know:
main
.