I sometimes run into issues when setting up a local repo because of the new main
default branch name on GitHub. Let's rename the local branch and set its upstream
properly.
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
NOTE: git remote set-head origin -a
fetches and sets origin/HEAD, so that the local repository has a local reference
of what the remote repository considers to be the default branch
.