setting username and email in git code example
Example 1: add git user and email
git config --global user.email "[email protected]"
git config --global user.name "My Name"
Example 2: get git username and email
git config user.name
git config user.email
Example 3: git set email and name for repo
git config user.name "Neeraj Singh"
git config user.email '[email protected]'
Example 4: configure git username and email
git config --global user.name "Your Name"git config --global user.email "[email protected]"
Example 5: How to check git config username?
git config user.name
Example 6: How to check git config username?
git config --list