You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure your default branch is configured as you expect.
By, default, GitHub repositories are created with main as the default branch.
If your project has no branch named main, you'll need to go into the repository settings and update your default branch.
Update master to main locally
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
What now?
All Tags and Branches?
The above migration process will include all branches and tags.
What about my old Repo?
Once the above steps are complete, your repository will exist in both places. You'll probably want to delete or archive your old repository to avoid confusion.