2017-02-09 56 views
-1

每一個東西就要好,但是當我進入「混帳提交-m‘第一次提交’」它不工作,並顯示此錯誤git的承諾沒有在我的命令提示符工作

[email protected] MINGW64 ~/Desktop/ajax (master) 
$ git commit -am 'gjhgj' 

*** 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: empty ident name (for <(null)>) not allowed 

請別人幫助對此

回答

3

通過運行

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

您可以省略--global在錯誤消息中指定,如果你的想爲當前僅設置這些信息,你應該設置你的電子郵件地址和姓名項目。