Skip to content

Rename repositories branches from master to main #227

@marcoieni

Description

@marcoieni

Many teams want to rename their repos from master to main.

Here's an incomplete list of repositories we want to rename:

How to

Here's the procedure for renaming the branch (things need to be done in this order):

  1. Change the branch name in the GitHub settings of the repo
  2. Update "Deployment branches and tags" restrictions in GitHub environments settings.
  3. Update CI roles (e.g. update ci role rustup branch simpleinfra#796)
  4. Change the CI workflows and other references to the master branch (e.g. Move the default branch from master to main rustup#4511)
  5. Change the team repo references to the master branch (e.g. Rename default branch of rustup to main team#2010)

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions