Skip to content

Instantly share code, notes, and snippets.

@shahali007
Last active March 14, 2022 09:22
Show Gist options
  • Select an option

  • Save shahali007/9ddd378627dbb6dfce60c526a1aec28e to your computer and use it in GitHub Desktop.

Select an option

Save shahali007/9ddd378627dbb6dfce60c526a1aec28e to your computer and use it in GitHub Desktop.
Set the Username and Email in git globally or per project
*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