Skip to content

Commit 0818a82

Browse files
committed
Blog: Switching from master to main
1 parent 5a3e192 commit 0818a82

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
19+
The commands to update your local clone are as follows:
20+
21+
```shell
22+
git branch -m master main
23+
git fetch origin
24+
git branch -u origin/main main
25+
git remote set-head origin -a
26+
```
27+
28+
Thx for your help! If you have any questions, feel free to ask.
29+
30+
Cheers,
31+
@rwaffen

0 commit comments

Comments
 (0)