Rename default branch to main
Closed this issue · 0 comments
BenjaminMichaelis commented
Specific instructions can be viewed here: https://github.com/github/renaming#rename-existing
-
Code owner needs to rename default branch from master to main
-
Check and update and correlated actions that refer to branch 'master'
-
If you have a fork and/or local clone, here are the steps you need to take:
- Navigate to your fork on GitHub, go to the Settings tab, then the Branches tab, and then under Default branch, click the pencil icon to rename the default branch to main.
-
If you have a local clone, run the following commands in Git Bash:
git branch -m master main
git fetch origin
git branch -u origin/main main