Answers for "git set default branch to 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 "git set default branch to main"

Browse Popular Code Answers by Language