git config --add user.email you@example.com
It is recommended to install [[notepad++]] or  [[EditPad Lite]], and use this as an commit message editor, so you won't have line ending mis-match in windows. Just save after writing the commmit message, and exit the program. The message is committed.
 #Windows
 git config --add core.editor "EditPadLite7"
 git config --add core.editor "notepad++"
 #Linux
 git config --add core.editor "nano"