git错误:unable to auto-detect emai

2019-08-02  本文已影响0人  huyiwan

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

上一篇 下一篇

猜你喜欢

热点阅读