Skip to content

Commit 52144b0

Browse files
committed
Blog: Switching from master to main
1 parent 5a3e192 commit 52144b0

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
layout: post
3+
title: Group Project: Switching from `master` to `main`
4+
date: 2026-03-20
5+
github_username: rwaffen
6+
---
7+
8+
Hi @everyone 👋, we have a large number of repositories, and we want to establish a clear and consistent standard for how we name our default branches across the organization.
9+
10+
This is not only about using inclusive language, but also about improving clarity, reducing confusion, and aligning with current defaults such as main on GitHub.
11+
12+
Since this change can involve a fair amount of work, we’d like to approach it collaboratively and involve everyone in the process.
13+
14+
If you touch any repository and got some extra time to spend, please switch the default branch to `main` and update your local clones accordingly.
15+
16+
<!-- TODO: Can everyone do this or do we need some special rights to do this? -->
17+
If you are a repository maintainer you can switch the default branch in the repository settings on GitHub.
18+
See the GitHub documaentation to this: <https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch>
19+
20+
The commands to update your local clone are as follows:
21+
22+
```shell
23+
git branch -m master main
24+
git fetch origin
25+
git branch -u origin/main main
26+
git remote set-head origin -a
27+
```
28+
29+
Thx for your help! If you have any questions, feel free to ask.
30+
31+
Cheers,
32+
@rwaffen

0 commit comments

Comments
 (0)