# Master to Main Switch

**URL:** <https://chapel.discourse.group/t/master-to-main-switch/5724>\
**Category:** Announcements\
**Created:** [June 21, 2021, 3:16pm UTC](https://chapel.discourse.group/t/master-to-main-switch/5724 "2021-06-21T15:16:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max](https://yyz2.discourse-cdn.com/free1/user_avatar/chapel.discourse.group/max/32/180_2.png) [@Max](https://chapel.discourse.group/u/Max)\
**Post date:** [June 21, 2021, 3:16pm UTC](https://chapel.discourse.group/t/master-to-main-switch/5724/1 "2021-06-21T15:16:00Z")

</div>

Hello Chapel Community,

As of today, in accordance with [Github’s Guidance](https://github.com/github/renaming), we have changed the name of our master branch to main. Github has been very accommodating in helping this process along, as they have done much work in their backend to make branch renaming as simple as possible. However, there is some work you might have to do if you have a local clone of the Chapel repository or a fork of that repository. Running the following Git commands will allow you to swap out your local master with the new main.

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

If you run into problems adjusting branches please feel free to ask for help in [this thread](https://chapel.discourse.group/t/master-to-main-switch-discussion/5722) or in our [Gitter](https://gitter.im/chapel-lang/chapel) if you prefer to communicate that way.
