Rename master git branch to main
Most recent discussion on this is here, and it seems the consensus is that main
would be the new name if things are renamed.
To do:
-
Update/Close as many MRs which are targeting master
as possible, as they likely won’t merge properly afterwards -
Update references to master
in the git repository: —.gitlab-ci.yml
org.gnome.Evince.appdata.xml.in
-
Add a note to NEWS
(and maybeREADME.md
) about the rename, and include/link to the instructions below on updating local clones — -
Push the new branch and deprecate the old one (don’t remove it yet as per this) — old one should be deprecated in (link to commit) -
Change default branch in gitlab -
Change branch protection in gitlab to apply the old master
settings to the new branch, and to prevent all pushes tomaster
(to prevent it accidentally being recreated) -
Update jhbuild — not necessary as Bastien has already fixed it to get the default branch name -
Update gnome-build-meta — -
Search and update evince.wrap
files that may exist in other projects (unlikely, but not impossible) — -
Notify the gnome-i18n
mailing list about the rename so l10n.gnome.org can be updated -
File a task about removing the old master
branch (as per this) after a month or two —
People will then need to update their local clones using:
$ git checkout master
$ git branch -m master main
$ git fetch
$ git branch --unset-upstream
$ git branch -u origin/main
$ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
This template is based on glib#2348 (comment 1104923)
Edited by Germán Poo-Caamaño