How to set git config username and email?

Today now in this post i will show you How to set git config username and email? When we are first time create our project on git repo or clone the project from git repo then we must have to set the username and email. We can also set the global username and email and also we can set the per repository username and email.

So now , in this post i will show you a example. By using the bellow command through we can set the global git username and email.

Global Set:
git config --global "shahriar sagor"
git config --global ""
git config --list

We can also set the username and email as per project repo by using the bellow command. At first we have to go on our project root directory.

Per Repo Set:
git config "Haresh Patel"
git config ""
git config --list

Read Also: Generate Captcha code and Validation by using BotDetect package in laravel

Thanks for read. I hope it help you. For more you can follow us on facebook

About Md. Mostofa Kamal

My name is Md. Mostofa Kamal. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help other developers. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS, and Bootstrap from the early stage.

View all posts by Md. Mostofa Kamal →