Last active
March 14, 2022 09:22
-
-
Save shahali007/9ddd378627dbb6dfce60c526a1aec28e to your computer and use it in GitHub Desktop.
Set the Username and Email in git globally or per project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *Set the username/email for a specific repository:* | |
| git config user.name "Your project specific name" | |
| git config user.email "your@project-specific-email.com" | |
| *Verify your settings:* | |
| git config --get user.name | |
| git config --get user.email | |
| *Set the username/email globally:* | |
| git config --global user.name "Your global username" | |
| git config --global user.email "your@email.com" | |
| *Verify your settings:* | |
| git config --global --get user.name | |
| git config --global --get user.email | |
| *Verify settings list:* | |
| git config --list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment