I believe your default global username is not set, which will most certainly cause this error. Please try the following command, then make a commit and push..
git config --global user.name myname
If this works, from here on out you will be able to commit and it will show with your username. Let me know what happens so I can assist you further if you need.