Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
There still is an ongoing discussion over the use of the word 'master' in the context of branches in versioning systems. The most common new name is 'main'.
If we were to change the name of the 'master' branch, the following things would have to be done as well:
- Adjust the references to the 'master' branch in the '.asf.yaml' files
- Adjust the references to the 'master' branch in the GitHub workflow files (located in '.github/workflows/')
- Inform INFRA to change the default branch for GitHub and GitBox
- Release instructions on how to adjust the local workspace (uses 'main' as the new name as an example)
- Rename the branch:
git branch -m master main
- Fetch from origin:
git fetch origin
- Set the origin for the new branch:
git branch -u origin/main main
- Change the symbolic reference for HEAD:
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
- Rename the branch: