1. Setting your email and view it in GIT

To change  your email in GIT, just type :
git config --global user.email "yourname@emailserver.com"
TIP 1: You don't have to give a valid email. If you're concerned about spam, use a fake email instead. user@server is a common practice.

TIP 2 : The --global flag writes this setting into your global git config. If you remove that flag and run the command from within a repo, you will override the setting for that repo.

 To view your current email in GIT , just type:
git config --global user.email

2. Setting your username and view it in GIT

 The same to above, when you want to change your username in GIT, just use the "git config " command :
git config --global user.name "your user name"
TIP 1: You don't have to give a real name.
TIP 2: remove "--global" flag, you will override the setting for that repo.

To view your current username in GIT . Just type:
git config --global user.name 
 ÌF you  get any troubleshoots . Plz, comment on this entry make us can help you fix it. Good luck !