Setting your user name and email in Git

After installing Git software. Open your terminal/command prompt/windows powershell. If for example your name is “John Matthew” and your email id is “johnmatthew@gmail.com”. Type following two commands:

git config --global user.name "John Matthew"

git config --global user.email johnmatthew@gmail.com

1 Like