git错误:unable to auto-detect email address

git commit的时候报如下错误
fatal: unable to auto-detect email address (got 'root@hu2i_ferhat.(none)')
找到工程目录,修改.git目录下的config文件vim ./.git/config,在文件里面添加
[user]
email=your email
name=your name

你可能感兴趣的:(git错误:unable to auto-detect email address)