-
-
Notifications
You must be signed in to change notification settings - Fork 375
Renamed Default Branch
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).
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
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