Skip to content

Commit d3cc660

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

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 lot of repositories, and we want to make sure that we are using inclusive language across all of them.
9+
Also `main` is the default branch name on GitHub, so it makes sense to switch to it.
10+
This change can be alot of work, so we thought we let everybody participate in the process and do it together.
11+
12+
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.
13+
14+
<!-- TODO: Can everyone do this or do we need some special rights to do this? -->
15+
If you are a repository maintainer you can switch the default branch in the repository settings on GitHub.
16+
17+
The commands to update your local clone are as follows:
18+
19+
```shell
20+
git branch -m master main
21+
git fetch origin
22+
git branch -u origin/main main
23+
git remote set-head origin -a
24+
```
25+
26+
Thx for your help! If you have any questions, feel free to ask.
27+
28+
Cheers,
29+
@rwaffen

0 commit comments

Comments
 (0)