Issue
A git repository uses the master branch and needs to be switched to main branch.
Solution
1 — Create a new branch locally:
git checkout -b main
2 — Delete the old default/master branch locally:
git branch -D master
A git repository uses the master branch and needs to be switched to main branch.
git checkout -b main
git branch -D master