How to set git config username and email?

By Hardik Savani | May 19, 2016 | Category : Git

When you first time create your git repo or clone project from git repo then you must have to set username and email. You can also set global username email and also you can set per repository username email. So, in this post in bellow command through you can set global git username and email.

Global Set:

git config --global "Haresh Patel"

git config --global "[email protected]"

git config --list

You can also set username and email per project repo using bellow command. First you have to go on your project root directory.

Per Repo Set:

git config "Haresh Patel"

git config "[email protected]"

git config --list

Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.