git config username

Shell
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected] config --global user.email "[email protected]"git config --global user.name "My Name"git config user.name
git config user.emailgit config --global user.email "[email protected]"
git config --global user.name "My Name"$ git config user.name "John Doe" 

Source

Also in Shell: