#4333 - Rename master branch to main in git (on hold)

Identifier #4333
Issue type Feature request or suggestion
Title Rename master branch to main in git (on hold)
Status Open
Tags

Roadmap: Over the horizon (custom)

Handling member Deleted
Addon core
Description There is a wide movement to rename the master git branch to main, by convention.

This is because of a perception that 'master' in master branch refers to a master/slave relationship, which is normalizing a metaphor of something horrific that should be kept to the history books.

1) ALTERING CODE

I have done some of the work for this already, altering our code to make it more easy to put in a new stable branch name.
We just need to change the master references in THANKS.md and version.php.

2) RENAMING ACTUAL BRANCH

These commands should do it:
git checkout master
git branch -m main
git push origin :master
git push origin main:refs/heads/main

3) OTHER REPOSITORIES

Do this across any other repositories we are maintaining for the long-term, not just the main Composr repository.

4) SEARCH TRACKER

Fix any references to 'master' on the tracker.
Steps to reproduce

Additional information Personally I feel the renaming is silly, given that the name 'master' is nothing to do with master/slave, and a normal English word used for many purposes (e.g. master's degree, headmaster, mast on a ship, master copy, etc). However my personal feelings are irrelevant because Git, GitHub, BitBucket, and GitLab, are all pressing forward with the rename and we should stick to convention. And honestly it doesn't hurt much, and 'main' is less characters to type.

This issue is on hold until GitLab:
a) makes URLs to 'master' branch files (etc) redirect to the configured main branch. GitHub have announced this for year end, and I do think GitLab will do it too.
b) automatically migrates stuff like merge requests on 'master' to 'main' (ditto)
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated