Background

Today, all development happens in the master branch. We want to move development to the main branch. This document tracks everything that needs to be done, and acts as a status page for the community.

Check out the ''Rename "master" branch to "main" mailing list thread on libc-alpha for background information. If you would like to contribute to the discussion, please follow up using our MailingLists.

Some excerpts:

High level plan

Work TODO

A lot of this is on the server side, so unfortunately requires an admin with access.

PSA

We'll need to send a PSA to the community to let them know the migration is/has happened, and how they can update their tree.

To: libc-announce@sourceware.org
Subject: development branch has been renamed to "main"

In our effort to make the community more inclusive, we have renamed
the development branch from "master" to "main".  For more details on
this particular work, please see our wiki and its background section:
https://sourceware.org/glibc/wiki/GlibcGit/MigrationToMain

For developers with checkouts of glibc, migration is easy.  You will
want to rename your local branches to avoid confusion, and update the
remote branches they merge from.
# Rename local "master" to "main".
$ git branch -M master main

# Update the remote branch you pull & merge from (and push to).
# You will need to repeat this for every local branch you have.
$ git config branch.main.merge refs/heads/main

All new clones will use "main" by default, so you won't need to make
any changes there.

If you have any automated scripts that have "master" hardcoded, you
will need to update them to refer to "main".

We do not plan on renaming any other existing (historical) branches.
Moving forward, we'll use "main" instead of "master" when creating
new branches (e.g. new release/2.40/main).

We also will not be rewriting the git history.  There is little to
be gained from doing so due to how disruptive it would be for all
developers involved and possibly breaking old builds, and we would
rather put effort into improving the now & future of our project.

Please feel free to respond to libc-alpha@sourceware.org with any
questions you might have.

None: GlibcGit/MigrationToMain (last edited 2021-01-22 02:32:02 by MikeFrysinger)