This is a Tutorial: Change Git Username and Email
These instructions are given to you when you first commit with git. Just btw.
git config --global user.name "Your Name"
git config --global user.email you@example.com
Afterwards type:
git commit --amend --reset-author