First, you need to create the “main” branch as normal branch, and push it to remote.
In GitHub(the remote side), go the “Settings” of the repository, set the “main” branch as “Default branch”. Then open “View all branches” page of the repo, remove the “master” branch.
In local side, you need to following the instructions below(from here), to avoid the “Your configuration specifies to merge with the
1 | git checkout main |
Now you can run “git pull” without issue.