# Set your user name
$ git config --global user.name "John Doe" 
# Set your email
$ git config --global user.email [email protected]
# Set your default branch name to 'main'
$ git config --global init.defaultBranch main 

# Some other popular choices as names are master, trunk etc.
# Set your default editor
$ git config --global core.editor "nano"
# List all the settings parameters
$ git config --list 
# Check the settings of a specific key
$ git config <key>
# Get help
$ git <verb/command name> --help