輸入get commit后出現(xiàn)下面提示這個(gè)什么怎么解決?
[root@localhost test]# git commit
*** Please tell me who you are.
Run
? git config --global user.email "you@example.com"
? 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@localhost.(none)')
2018-03-13
命令執(zhí)行失敗的原因是沒(méi)有在本地設(shè)置用戶名和郵箱,在命令行設(shè)置一下即可:?git config –global user.email “you@example.com”、?
git config –global user.name “Your Nam”, 然然后重新用git commit -m “Initial commit”命令提交。
2017-12-06
截圖部分是視頻內(nèi)容,是視頻部分? 上面的命令是我在linux中出現(xiàn)的問(wèn)題 這個(gè)問(wèn)題怎么解決?