As far as I remember, changing the default branch would be able to be done with command line parameter or a configuration variable
git init --default-branch=main
git config branch.default main
Some comments have been hidden by the post's author - find out more
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.