Answers for "fatal: unable to auto-detect email address (got 'root@granade-host.(none)')"

4

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
Posted by: Guest on May-23-2020

Code answers related to "fatal: unable to auto-detect email address (got 'root@granade-host.(none)')"

Browse Popular Code Answers by Language