Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
Working Documents Deliverables (navigation) - Samvera Branch Renaming Working GroupWorking Documents
Deliverables (navigation) - Samvera Branch Renaming Working Group

...

  •  renames master to main
    •  branch dropdown defaults to main
    •  master is not in the branch dropdown (this requires manual removal)
  •  Settings → Branches
    •  main is the default branch
    •  branch rules were copied over to main
    •  master branch is not in the branch dropdown under Default branch
    •  master branch is not listed in the Branch protection rules area
  •  updates issues
    •  changes reference to a sha in master to the same sha in main
    •   changes links to code in master branch to the same code in main
  •  updates PRs
    •  updates 'commit into' branch to main for all PRs (NOTE:
    •   updates links to code in master branch to the same code in main
  •  wiki updated (None as expected)
    •   updates links to code in master branch to the same code in main (NOTE: Even though the link text and URL were not changed, GitHub forwards all 404 to the default branch which is main.) (N/A)
  •  local git repo (None as expected)
    •  Switches local to "main"
    •  Deletes local "master"
  •  working with Forks
    •  TBD
  •  README and other document - not changed

...

  • Links to code outside this repository
  • Issues and PRs made to master before renaming
  • Integrations
  • Forks
  • Documentation

Evaluation:

This script provides a quick and easy interface to replace "master" with "main" on a GitHub repository and update the local to "main."  It is intentionally conservative in its approach and does not delete branches on the local or remote, so all removal of "master" should be done manually.  This script may be especially useful when used with GitHub's upcoming seamless transition tooling.