Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions _posts/2026-03-20-master-to-main.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
layout: post
title: Group Project: Switching from `master` to `main`
date: 2026-03-20
github_username: rwaffen
---

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.

The reason for this change is to align with current defaults on GitHub, upcoming changes to Git itself, as well as standardizing language, improving clarity, and reducing confusion of having different repositories with different defaults.

Since this change can involve a fair amount of work, we’d like to approach it collaboratively and involve everyone in the process.

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.

<!-- TODO: Can everyone do this or do we need some special rights to do this? -->
If you are a repository maintainer you can switch the default branch in the repository settings on GitHub.
Comment thread
rwaffen marked this conversation as resolved.
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>
Comment thread
rwaffen marked this conversation as resolved.
Outdated

The commands to update your local clone are as follows:

```shell
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
```

Thx for your help! If you have any questions, feel free to ask.

Cheers,
@rwaffen