How to set git config username and email?

You must first set your login and email when creating your first git repository or cloning a project from one. Additionally, you may set the username email for each repository as well as the global username email. As a result, you can set the global git login and email in this article using the command line.

Global Set:

git config --global "ErrorGram"
git config --global "[email protected]"
git config --list

Using the command below, you can also set a login and email for each project repository. You must first navigate to the project root directory.

Per Repo Set:

git config "ErrorGram"
git config "[email protected]"
git config --list

Thank you