DEV Community

Discussion on: Replacing master in git

Collapse
 
jnareb profile image
Jakub Narębski

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

or

git config branch.default main
# ...
git init

Some comments have been hidden by the post's author - find out more