[GRASS-dev] Renaming master branch to main branch

Vaclav Petras wenzeslaus at gmail.com
Wed Aug 18 19:41:56 PDT 2021


Dear all,

I will rename our default branch currently called master to main in the
following days. We already discussed it here and there, but the rename
should be relatively smooth. Much simpler than the addons repo
reorganization. Users not compiling code themselves should not be affected.
Contributors will be, but GitHub warns you about the rename when you come
to the repo web page. Those compiling from source may need to make changes.

The update of a local clone can be done with instructions similar to the
following (I will post them again once I confirm it is the best fit):

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

Additionally, to get rid of upstream/master, do:

git fetch --prune

You don't need to update your fork unless you want to.

The changes needed in the repo are already in a PR (feel free to review):

https://github.com/OSGeo/grass/pull/1806

Those compiling from source code obtained from Git will need to make
changes when they explicitly specify the branch. A simple `git clone` takes
the default branch which will continue to work. However, if you do
--branch, checkout, or switch, and at the same time using the master
branch, you will need to change "master" to "main".

Let me know if you have any questions or concerns.

Best,
Vaclav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20210818/bdddcea7/attachment.html>


More information about the grass-dev mailing list