Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Renamed Default Branch

Jeff McKenna edited this page Apr 7, 2021 · 33 revisions

History (of renaming default branch to 'main')

The MapServer Project Steering Committee (PSC) has voted in January 2021 to rename the default 'master' repository to the less-insensitive name of 'main', for all of the projects under the Github "MapServer organization" umbrella. All repositories were switched to 'main' as the default branch, on 2021-01-15.

Github recently made this renaming more straightforward (https://github.com/github/renaming).

Updating your fork on Github

If you have forked one of the MapServer project's repositories, you may receive a notice on your Github project page such as:

Execute the following steps to rename your fork's default branch to 'main':

Step 1: Click on the "Settings" link (top / right of your forked repository page)

Step 2: Click on "Branches" in the left panel

Step 3: In the "Default Branch" section, click on the edit tool (right-side)

Step 4: Type 'main' and click 'Rename branch' button

Updating your local clone or local fork

Locally, execute the following 4 git commands to make sure that your clone's origin will be the new 'main' branch:

  git branch -m master main
  git fetch origin
  git branch -u origin/main main
  git remote set-head origin -a

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.