DEV Community

Discussion on: Changing the default branch name on GitHub

Collapse
modestfake profile image
Vitalii Saienko

With the latest git version 2.28 you can set the default branch name globally with this command:

git config --global init.defaultBranch main

Git v2.28 highlights

Collapse
nocnica profile image
Nočnica Fee Author

Thank you! I need to update this post :)

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