[GRASS-dev] Renaming master branch to main branch
Jeff McKenna
jmckenna at gatewaygeomatics.com
Thu Aug 19 05:19:15 PDT 2021
Here are some screen captures for these same steps, that I created back
in January for the MapServer community:
https://github.com/MapServer/MapServer/wiki/Renamed-Default-Branch
-jeff
--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
On 2021-08-18 11:41 p.m., Vaclav Petras wrote:
> 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
> <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
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
>
More information about the grass-dev
mailing list