Global configuration is stored in a file .gitconfig your root (cd ~) folder.

Set your name

git config --global user.name = 'John Doe'

Set your e-mail

git config --global user.email = 'info@yourdomain.com'

Set default editor, which will be used for commit messages, resolving conflicts, etc.

git config --global core.editor vi

OR

git config --global core.editor notepad

Turn off a warning about LF replacement

git config --global core.autocrlf true