...
To rename the default branch, we recommend using the github-default-branch.
This tool will:
- In the remote repository on GitHub, this tool will automatically:
- Rename the default branch from master to main
- Remove references to master in the branch interface
- Copy branch protection rules on master to main
- Update open pull requests pointing to master, to point to main
- Update references in issues from master to main
- Offer the ability for most local copies to update against the remote with a series of short commands
- This would need to be done locally for each local copy that contains an outdated reference to master
...