[GRASS-user] Pulling source changes from github

The host for grass source code has changed. When I issue a 'git pull'
request it fails:
$ git pull
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.

What do I need to change here, and where do I change it, to pull changes to
my local installation?

TIA,

Rich

Hi Rich,

This is likely due to the default branch name changing to 'main' (instead of 'master'). I documented the steps for the MapServer community at https://github.com/MapServer/MapServer/wiki/Renamed-Default-Branch

But you can likely just issue the following commands in your local machine:

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

(maybe Vashek wrote more details in a previous message here, but this is my input, ha)

-jeff

--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/

On 2021-09-15 4:54 p.m., Rich Shepard wrote:

The host for grass source code has changed. When I issue a 'git pull'
request it fails:
$ git pull
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.

What do I need to change here, and where do I change it, to pull changes to
my local installation?

TIA,

Rich

On Wed, 15 Sep 2021, Jeff McKenna wrote:

This is likely due to the default branch name changing to 'main' (instead
of 'master'). I documented the steps for the MapServer community at
https://github.com/MapServer/MapServer/wiki/Renamed-Default-Branch

Jeff,

I thought it was a name change but my use of git is pretty well limited to
creating new repos for projects and updating them as needed. I have the
pro-git book but wouldn't know how to find what is needed because I'm far
from a git expert.

But you can likely just issue the following commands in your local
machine:

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

That worked well. Thank you very much.

Stay well,

Rich