How to Configure Git Username and Email?
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 user.name "Haresh Patel"
git config --global user.email "itsolutionstuff@gmail.com"
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 user.name "Haresh Patel"
git config user.email "itsolutionstuff@gmail.com"
git config --list
I hope it can help you...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. 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, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Remove File from Git Commit Before Push?
- How to Delete a Branch form GitHub Repository?
- How to Rename Branch Name in Git Command?
- How to Switch Branch using Git Command?
- How to Create a New Branch on GitHub?
- How to Clone Github Repository using Command Line?
- How to Ignore Wildcard Files Name in Git using Gitignore?
- How to Ignore Folder in Git using Gitignore?
- How to Ignore File in Git using Gitignore?
- How to Git Ignore Some Files Locally?
- Git - How to Find a Deleted File in Commit History?
- How to Git Force Pull from Remote Branch?
- Git Remove Last Commit from Local Example