Changing a fork's default branch from master to main
GitHub will notify you when a parent branch has changed. To change your fork's default branch to main:
- Navigate to main web page of your fork.
- You should see a "The default branch on the parent repository has been renamed" message.
- Select the branch settings link.
- Change master to main.