git initialization commands code example
Example 1: initialize git on windows
$ git config --global init.defaultBranch main
Example 2: initialize git on windows
-- 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