Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-793

Decide whether to rename the 'master' branch to 'main'

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • JDO 3.2
    • 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)
        1. Rename the branch:
          git branch -m master main
        2. Fetch from origin:
          git fetch origin
        3. Set the origin for the new branch:
          git branch -u origin/main main
        4. Change the symbolic reference for HEAD:
          git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main

      Attachments

        Activity

          People

            Unassigned Unassigned
            tobous Tobias Bouschen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: