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.
git config --global user.name "shahriar sagor" git config --global user.email "firstname.lastname@example.org" 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 user.name "Haresh Patel" git config user.email "email@example.com" 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