xxxxxxxxxx
# For setting inside project folder
git config user.name "Neeraj Singh"
git config user.email 'nnneerajjj@gmail.com'
xxxxxxxxxx
git config --global user.name "Peter"
git config --global user.email "peter@gmail.com"
xxxxxxxxxx
git config user.email 'email@example.com'
git config user.name 'Masroor Hussain'
xxxxxxxxxx
$ git config user.name "Mona Lisa"
$ git config user.email "myemail@mydomain.com"
xxxxxxxxxx
git config --global user.name "Name"
git config --global user.email "exe@exe.com"
xxxxxxxxxx
git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
xxxxxxxxxx
git config --global user.email youremail@example.com
#git config can be used to set user-specific configuration values like email, username, file format, and so on.
#The –global flag tells GIT that you’re going to use that email for all local repositories.
xxxxxxxxxx
git config --global user.email yournew@email.com
git config --global user.name yournewgoodname