xxxxxxxxxx
# FOR ALL REPOS
## change username
git config --global user.name "John Doe"
## change email address
git config --global user.email "johndoe@example.com"
# FOR CURRENT-DIRECTORY REPO ONLY
## change username
git config user.name "John Doe"
## change email address
git config user.email "johndoe@example.com"
xxxxxxxxxx
git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "YourEmail@example.com"
xxxxxxxxxx
$ git config user.name "Mona Lisa"
$ git config user.email "myemail@mydomain.com"
git config email and username
xxxxxxxxxx
git config --global user.email abram.keeve@gmail.com
git config --global user.name Abram-K
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.name "John Doe"
$ git config --global user.email johndoe@example.com
More git configartion info:
https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_code_commit_template_code
xxxxxxxxxx
git config --global user.email yournew@email.com
git config --global user.name yournewgoodname