If you generated your local repo with git init . and it has a "master" branch by default (for example if you're using an old version of local Git), follow these steps to re-configure the local repo:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
If you generated your local repo with
git init .
and it has a "master" branch by default (for example if you're using an old version of local Git), follow these steps to re-configure the local repo: