Changing the default branch from master to main

Over the next 24 hours, we’ll change Transformers’ default branch from master to main.

We’ll leverage GitHub’s renaming utility which should take care of the entire migration and handle redirection when the previous branch name was erroneously entered.

This will not update local environments, where running the following commands the first time will be necessary (will be mentioned on GitHub directly):

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

Thanks for your understanding!

4 Likes