$ git config --global init.defaultBranch main
-- initialize git repository to main on Windows 10 using terminal -- open the terminal, change to the Directory/folder you want to initiliaze (e.g cd myProject) git init --b main