fatal: unable to auto-detect email address (got 'mygny@LAPTOP-9KV87AIV.(none)') git config --get-all user.name git pull --tags origin master code example

Example: fatal: unable to auto-detect email address

set global and global user.name and user.email parameters
# Check the details locally and globally
git config --local -l
git config --global -l

# Set user.name and user.email locally and globally
# Considering my name is name
git config --global user.name "name"
git config --global user.email "[email protected]"
git config --local user.name "name"
git config --local user.email "[email protected]"

# Check the changes again using 3 and 4
# Commit the changes now
git commit -m "Commit changes"
# Should work now without any error

Tags:

Misc Example