# Our default branch is now \`main\`

**URL:** <https://meta.discourse.org/t/our-default-branch-is-now-main/197598>\
**Category:** Development\
**Created:** [July 19, 2021, 3:21pm UTC](https://meta.discourse.org/t/our-default-branch-is-now-main/197598 "2021-07-19T15:21:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [July 19, 2021, 3:21pm UTC](https://meta.discourse.org/t/our-default-branch-is-now-main/197598/1 "2021-07-19T15:21:40Z")

</div>

As of this morning, our main repo [discourse/discourse](https://github.com/discourse/discourse) has renamed its main branch from `master` to `main` to avoid slavery references.

We’ve spent a long time slowly renaming all our branches and updating our code base to support this change. **However, some things may break.** Please use this topic to report any errors you encounter.

If you already have a version of discourse checked out on your computer for development you will have to rename it. Github conveniently offers the following instructions:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/5/e5625996984cf22a3f970b5f71c93a5cc8f189a4.png)

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

```

---

_[View the full topic](https://meta.discourse.org/t/our-default-branch-is-now-main/197598)._
