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)')
このエラーをどのように解決できますか?
これは私のグローバルな.gitconfigファイルです。
#[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
次のリポジトリにプッシュしてみてください。
git remote add linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ローカルの.gitディレクトリ:
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