Summary
Rename the default branch from master to main.
Background
The term "master" in the context of default branch naming carries connotations rooted in master/slave terminology, which is exclusionary and harmful to members of communities that have been historically affected by slavery. The Git project, GitHub, the Fedora Project, and many major open source projects have adopted main as the default branch name to foster a more welcoming and inclusive environment. As a program dedicated to inclusion in open source, Outreachy's own repository should reflect this value.
Details
GitHub provides a straightforward process to rename the default branch:
- Go to Settings > General > Default branch on the repository page
- Click the edit (pencil) icon next to
master
- Type
main and click Rename branch
GitHub will automatically:
- Retarget any open pull requests to the new branch name
- Update branch protection rules
- Create a redirect so that any links or clones referencing
master will resolve to main
Contributors with existing local clones can update with:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
Any CI/CD configuration, documentation, or scripts that reference master should be updated to reference main after the rename.
Outcome
The repository will use main as its default branch name, aligning with industry standards and reinforcing Outreachy's commitment to inclusive language in open source.
Summary
Rename the default branch from
mastertomain.Background
The term "master" in the context of default branch naming carries connotations rooted in master/slave terminology, which is exclusionary and harmful to members of communities that have been historically affected by slavery. The Git project, GitHub, the Fedora Project, and many major open source projects have adopted
mainas the default branch name to foster a more welcoming and inclusive environment. As a program dedicated to inclusion in open source, Outreachy's own repository should reflect this value.Details
GitHub provides a straightforward process to rename the default branch:
mastermainand click Rename branchGitHub will automatically:
masterwill resolve tomainContributors with existing local clones can update with:
Any CI/CD configuration, documentation, or scripts that reference
mastershould be updated to referencemainafter the rename.Outcome
The repository will use
mainas its default branch name, aligning with industry standards and reinforcing Outreachy's commitment to inclusive language in open source.