See all the config
git config --list #show all the settings in gitconfig
Open config to edit
git config --global -e #open .gitconfig file
Set default editor
git config --global core.editor "code --wait" # set default text editor for git
User settings
git config --global user.name "name" #set user.name
git config --global user.email "email" #set user.email
git config user.name #check user.name
git config user.email #check user.email
Set Auto CRLF
git config --global core.autocrlf true #for Windows
git config --global core.autocrlf input #for Mac
Git Aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
Git official site
See help
git config --help #detail
git config -h #short