change git username and email for a repo code example
Example 1: git change email
git config --global user.email "[email protected]"
Example 2: change global user name git
$ git config --global user.name "Mona Lisa"
Example 3: change git username and email
$ git config --global user.email "[email protected]"
Example 4: git config --global user.name "Server"
cat .gitconfig