fatal: unable to auto-detect email address (got 'root@pegasusv.(none)')?

NobinPegasus

Member
Joined
Feb 4, 2022
Messages
50
Reaction score
0
Credits
447
Code:
pegasus@pegasusv:/linux_work/linux_stable$ sudo git commit -a
[sudo] password for pegasus: 
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@pegasusv.(none)')
How can I fix the error?

Here's my global .gitconfig file:

Code:
#[safe]
#       directory = /linux_work/linux
#       directory = /linux_work/linux-kselftest
[user]
        name = Zeshan Ahmed Nobin
        email = [email protected]

[format]
        signoff = true
[core]
        editor = vim

[sendmail]
        smtpserver = mail.xxxx.com
        smtpserverport = portnum
        smtpencryption = tls
        smtpuser = user
        smtppass = password


[safe]
        directory = /linux_work/linux_stable
Trying to push to this repo:
git remote add linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

The local .git directory:
Code:
 Netrw Directory Listing                                        (netrw v171)
"   /linux_work/linux_stable/.git
"   Sorted by      name
"   Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
"   Quick Help: <F1>:help  -:go up dir  D:delete  R:rename  s:sort-by  x:special
" ==============================================================================
../
./
branches/
hooks/
info/
logs/
objects/
refs/
FETCH_HEAD
HEAD
config
description
index
packed-refs
 

Members online


Top