You can use: git init --initial-branch=main to initialize a new branch called ‘main’ instead of master.
To set this globally for new repos you can use: git config --global init.defaultBranch main
Neat, make the magic happen.
ILM Certified Coach | Neurodivergent | Queer | Non-Binary | Disabled | A Little Feral
You can use: git init --initial-branch=main to initialize a new branch called ‘main’ instead of master.
To set this globally for new repos you can use: git config --global init.defaultBranch main
Neat, make the magic happen.