Answers for "how to set default branch as main"

2

set the default branch to main

git config --global init.defaultBranch main
Posted by: Guest on March-30-2021
1

To set main as the default branch name do:

$ git config --global init.defaultBranch main
Posted by: Guest on March-30-2021

Code answers related to "how to set default branch as main"

Browse Popular Code Answers by Language