xxxxxxxxxx
01
02
03
04
05
06
07
// to add
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
// to remove
git config --global --unset user.name
git config --global --unset user.email
xxxxxxxxxx
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
xxxxxxxxxx
git config --global credential.helper store
this makes so the nex time you enter your credentials it's saved, and doesn't prompt you again
xxxxxxxxxx
git config --global user.name "Ivan Yastrebov"
git config --global user.email easy.quest@mail.ru