Setup
Install Git
Download the executable from here
Update Git
Download the most recent installer, or run
git update-git-for-windowsVersion
To get the current version number
git versionAlternatively you can use git -v or git --version.
Setup Identity
To set up user name and email address use the commands
git config --global user.name "<your name>"
git config --global user.email "<your email>"You have to do this only once. You can change these settings any time.
Setup Default Branch Name
By default Git creates a initial branch called master. To set a different name, for example main, run
git config --global init.defaultBranch mainCheck Your Settings
To check your settings use
git config --global --list
# user.name=<your name>
# user.email=<your email>
# init.defaultbranch=main