Git Main Branch
The main branch is the default branch of a repository. It usually holds the finished, working version of the project.
Older repositories often call it master. GitHub and most teams now use main, and you can tell Git to use it for every new repository.
Use main for new repositories
git config --global init.defaultBranch main
Rename master to main
git branch
* master
git branch -m master main
git branch
* main